Skip to content

Commit

Permalink
fix: signer infos
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Aug 22, 2024
1 parent c0cdc09 commit 3ad927c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions contribs/gnodev/pkg/browser/client_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,16 @@ func (ncl *NodeClient) Call(path, call string) ([]byte, error) {
args = nil
}

cm, err := ncl.client.Call(ncl.base, gnoclient.MsgCall{
PkgPath: path,
FuncName: method,
Args: args,
infos, err := ncl.client.Signer.Info()
if err != nil {
return nil, fmt.Errorf("unable to get signer infos: %w", err)
}

cm, err := ncl.client.Call(ncl.base, vm.MsgCall{
Caller: infos.GetAddress(),
PkgPath: path,
Func: method,
Args: args,
})
if err != nil {
return nil, err
Expand Down

0 comments on commit 3ad927c

Please sign in to comment.