Skip to content

Commit baeb72c

Browse files
chore(utxo-staking): switch value to amount
TICKET: BTC-1582
1 parent 518a50d commit baeb72c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/utxo-staking/src/coreDao/transaction.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import { Descriptor } from '@bitgo/wasm-miniscript';
1111
*/
1212
export function createStakingOutputs(
1313
stakingParams: {
14-
value: bigint;
14+
amount: bigint;
1515
descriptor: string;
1616
index?: number;
1717
},
1818
opReturnParams: OpReturnParams
19-
): { script: Buffer; value: bigint }[] {
19+
): { script: Buffer; amount: bigint }[] {
2020
const descriptor = Descriptor.fromString(
2121
stakingParams.descriptor,
2222
stakingParams.index === undefined ? 'definite' : 'derivable'
@@ -30,7 +30,7 @@ export function createStakingOutputs(
3030
const opReturnScript = createCoreDaoOpReturnOutputScript(opReturnParams);
3131

3232
return [
33-
{ script: outputScript, value: stakingParams.value },
34-
{ script: opReturnScript, value: BigInt(0) },
33+
{ script: outputScript, amount: stakingParams.amount },
34+
{ script: opReturnScript, amount: BigInt(0) },
3535
];
3636
}

0 commit comments

Comments
 (0)