diff --git a/packages/neuron-wallet/src/services/tx/transaction-generator.ts b/packages/neuron-wallet/src/services/tx/transaction-generator.ts index fd75914af7..226138f13c 100644 --- a/packages/neuron-wallet/src/services/tx/transaction-generator.ts +++ b/packages/neuron-wallet/src/services/tx/transaction-generator.ts @@ -202,6 +202,7 @@ export class TransactionGenerator { data: '0x0000000000000000', daoData: '0x0000000000000000', } + output.typeHash = LockUtils.computeScriptHash(output.type!) const outputs: Cell[] = [output] diff --git a/packages/neuron-wallet/src/services/wallets.ts b/packages/neuron-wallet/src/services/wallets.ts index 9bfea2d62a..a4ab68082d 100644 --- a/packages/neuron-wallet/src/services/wallets.ts +++ b/packages/neuron-wallet/src/services/wallets.ts @@ -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