Skip to content

Commit

Permalink
[Easy] update example (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
mliu authored Nov 14, 2024
1 parent 7ccc4bb commit baee362
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/examples/src/solana/createReceivable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,20 @@ async function main() {
currencyCode: '840',
receivableAmount: new BN(100),
maturityDate: new BN(oneWeekFromNow),
referenceId: 'test-reference-id4',
referenceId: 'test-reference-id6',
},
)

console.log(tx)

const txResult = await sendAndConfirmTransaction(connection, tx, [
newAsset,
keypair,
])
const txResult = await sendAndConfirmTransaction(
connection,
tx,
[newAsset, keypair],
{
preflightCommitment: 'confirmed',
},
)

console.log(txResult)
}
Expand Down

0 comments on commit baee362

Please sign in to comment.