Skip to content

Commit

Permalink
fix new test cases in gnodev
Browse files Browse the repository at this point in the history
  • Loading branch information
linhpn99 committed Jul 8, 2024
1 parent 21bb55f commit 5408223
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions contribs/gnodev/pkg/dev/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,17 @@ func testingCallRealm(t *testing.T, node *Node, msgs ...gnoclient.MsgCall) (*cor
RPCClient: node.Client(),
}

signerInfo, err := signer.Info()
require.NoError(t, err)

acc, _, err := cli.QueryAccount(signerInfo.GetAddress())
require.NoError(t, err)

txcfg := gnoclient.BaseTxCfg{
GasFee: "1000000ugnot", // Gas fee
GasWanted: 2_000_000, // Gas wanted
GasFee: "1000000ugnot", // Gas fee
GasWanted: 2_000_000, // Gas wanted
AccountNumber: acc.AccountNumber,
SequenceNumber: acc.Sequence,
}

return cli.Call(txcfg, msgs...)
Expand Down

0 comments on commit 5408223

Please sign in to comment.