Skip to content

Commit ce5e264

Browse files
committed
fix: add typeHash when generate dao tx
1 parent df3eb0e commit ce5e264

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

packages/neuron-wallet/src/services/tx/transaction-generator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export class TransactionGenerator {
202202
data: '0x0000000000000000',
203203
daoData: '0x0000000000000000',
204204
}
205+
output.typeHash = LockUtils.computeScriptHash(output.type!)
205206

206207
const outputs: Cell[] = [output]
207208

packages/neuron-wallet/src/services/wallets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ export default class WalletService {
558558
const buf = Buffer.alloc(8)
559559
buf.writeBigUInt64LE(BigInt(depositBlockNumber))
560560
output.data = `0x${buf.toString('hex')}`
561+
output.typeHash = LockUtils.computeScriptHash(output.type!)
561562
output.daoData = output.data
562563
output.depositOutPoint = outPoint
563564

0 commit comments

Comments
 (0)