Skip to content

Commit

Permalink
Merge pull request #501 from casper-ecosystem/bugfix/fix-delegate-flo…
Browse files Browse the repository at this point in the history
…w-with-missing-param

fix un/re-delegate flow with 'payment' property
  • Loading branch information
alexmyshchyshyn authored Jan 30, 2025
2 parents d910a0f + b8a2357 commit f6e2de7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/casper-network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export class CasperNetwork {
.from(delegatorPublicKey)
.byHash(auctionContractHash)
.entryPoint('delegate')
.payment(deployCost)
.chainName(networkName)
.runtimeArgs(
Args.fromMap({
Expand Down Expand Up @@ -110,6 +111,7 @@ export class CasperNetwork {
.byHash(auctionContractHash)
.entryPoint('undelegate')
.chainName(networkName)
.payment(deployCost)
.ttl(ttl)
.runtimeArgs(
Args.fromMap({
Expand Down Expand Up @@ -154,6 +156,7 @@ export class CasperNetwork {
.byHash(auctionContractHash)
.entryPoint('redelegate')
.chainName(networkName)
.payment(deployCost)
.runtimeArgs(
Args.fromMap({
validator: CLValue.newCLPublicKey(validatorPublicKey),
Expand Down

0 comments on commit f6e2de7

Please sign in to comment.