Skip to content

Commit

Permalink
fix: add typeHash when generate dao tx
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 15, 2019
1 parent df3eb0e commit ce5e264
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export class TransactionGenerator {
data: '0x0000000000000000',
daoData: '0x0000000000000000',
}
output.typeHash = LockUtils.computeScriptHash(output.type!)

const outputs: Cell[] = [output]

Expand Down
1 change: 1 addition & 0 deletions packages/neuron-wallet/src/services/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ export default class WalletService {
const buf = Buffer.alloc(8)
buf.writeBigUInt64LE(BigInt(depositBlockNumber))
output.data = `0x${buf.toString('hex')}`
output.typeHash = LockUtils.computeScriptHash(output.type!)
output.daoData = output.data
output.depositOutPoint = outPoint

Expand Down

0 comments on commit ce5e264

Please sign in to comment.