Skip to content

Commit

Permalink
Merge pull request #5138 from BitGo/BTC-1582
Browse files Browse the repository at this point in the history
chore(utxo-staking): switch value to amount
  • Loading branch information
davidkaplanbitgo authored Nov 15, 2024
2 parents 518a50d + baeb72c commit 28c2f5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/utxo-staking/src/coreDao/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import { Descriptor } from '@bitgo/wasm-miniscript';
*/
export function createStakingOutputs(
stakingParams: {
value: bigint;
amount: bigint;
descriptor: string;
index?: number;
},
opReturnParams: OpReturnParams
): { script: Buffer; value: bigint }[] {
): { script: Buffer; amount: bigint }[] {
const descriptor = Descriptor.fromString(
stakingParams.descriptor,
stakingParams.index === undefined ? 'definite' : 'derivable'
Expand All @@ -30,7 +30,7 @@ export function createStakingOutputs(
const opReturnScript = createCoreDaoOpReturnOutputScript(opReturnParams);

return [
{ script: outputScript, value: stakingParams.value },
{ script: opReturnScript, value: BigInt(0) },
{ script: outputScript, amount: stakingParams.amount },
{ script: opReturnScript, amount: BigInt(0) },
];
}

0 comments on commit 28c2f5b

Please sign in to comment.