Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alagunto committed Sep 5, 2024
1 parent 4b80f67 commit a714e0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/nearcall/nearcall.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package main

import (
"context"
"crypto/sha256"
"flag"
"fmt"
Expand Down Expand Up @@ -41,7 +42,7 @@ func GoCall(network, accountID, contract, method, argfile string) (string, inter
if err != nil {
return arghash, nil, err
}
resp, err := account.FunctionCall(contract, method, args, 100_000_000_000_000, *(big.NewInt(0)))
resp, err := account.FunctionCall(context.Background(), contract, method, args, 100_000_000_000_000, *(big.NewInt(0)))
if err != nil {
return arghash, nil, err
}
Expand Down

0 comments on commit a714e0f

Please sign in to comment.