From a714e0f6d30cc32558c4e7f83b6eb4aa6a36ebb2 Mon Sep 17 00:00:00 2001 From: Alagunto Date: Thu, 5 Sep 2024 07:26:18 +0400 Subject: [PATCH] bugfix --- cmd/nearcall/nearcall.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/nearcall/nearcall.go b/cmd/nearcall/nearcall.go index b4d817a..18066a9 100644 --- a/cmd/nearcall/nearcall.go +++ b/cmd/nearcall/nearcall.go @@ -2,6 +2,7 @@ package main import ( + "context" "crypto/sha256" "flag" "fmt" @@ -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 }