Skip to content

Commit

Permalink
Merge pull request #511 from casper-ecosystem/add-ids-to-transfer
Browse files Browse the repository at this point in the history
Add TransferID to transaction/deploy
  • Loading branch information
eugenebelov authored Feb 10, 2025
2 parents 2888af8 + 514d417 commit 15da790
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/casper-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,17 @@ export class CasperNetwork {
networkName: string,
amountMotes: string,
deployCost: number,
ttl: number
ttl: number,
id: number
): Transaction {
const transferBuilder = new NativeTransferBuilder()
.from(senderPublicKey)
.target(recipientPublicKey)
.amount(amountMotes)
.chainName(networkName)
.payment(deployCost)
.ttl(ttl);
.ttl(ttl)
.id(id);
if (this.apiVersion === 2) {
return transferBuilder.build();
}
Expand Down

0 comments on commit 15da790

Please sign in to comment.