rpc: fix balance overflow (#219)

Closes #218
This commit is contained in:
yihuang
2021-07-02 05:29:47 -04:00
committed by GitHub
parent f7d975ada2
commit 6e983a9da1
8 changed files with 408 additions and 187 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ message QueryAccountRequest {
// QueryAccountResponse is the response type for the Query/Account RPC method.
message QueryAccountResponse {
// balance is the balance of the EVM denomination.
int64 balance = 1;
string balance = 1;
// code hash is the hex-formatted code bytes from the EOA.
string code_hash = 2;
// nonce is the account's sequence number.
@@ -136,7 +136,7 @@ message QueryBalanceRequest {
// QueryBalanceResponse is the response type for the Query/Balance RPC method.
message QueryBalanceResponse {
// balance is the balance of the EVM denomination.
int64 balance = 1;
string balance = 1;
}
// QueryStorageRequest is the request type for the Query/Storage RPC method.