Skip to content

Commit

Permalink
Fix: balance
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored and m-kus committed Nov 12, 2020
1 parent 2405864 commit 516c7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/noderpc/node_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func (rpc *NodeRPC) GetContractBalance(address string, level int64) (int64, erro
}

var contract struct {
Balance int64 `json:"balance"`
Balance int64 `json:"balance,string"`
}
if err := rpc.get(fmt.Sprintf("chains/main/blocks/%s/context/contracts/%s", block, address), &contract); err != nil {
return 0, err
Expand Down

0 comments on commit 516c7c1

Please sign in to comment.