mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
change Value to *hexutil.Big in order to have the same output as parity
This commit is contained in:
parent
e51f274f42
commit
17ac3721f2
1 changed files with 5 additions and 5 deletions
|
|
@ -514,7 +514,7 @@ type AccountResult struct {
|
||||||
}
|
}
|
||||||
type StorageResult struct {
|
type StorageResult struct {
|
||||||
Key string `json:"key"`
|
Key string `json:"key"`
|
||||||
Value common.Hash `json:"value"`
|
Value *hexutil.Big `json:"value"`
|
||||||
Proof []string `json:"proof"`
|
Proof []string `json:"proof"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -545,9 +545,9 @@ func (s *PublicBlockChainAPI) GetProof(ctx context.Context, address common.Addre
|
||||||
if storageError != nil {
|
if storageError != nil {
|
||||||
return nil, storageError
|
return nil, storageError
|
||||||
}
|
}
|
||||||
storageProof[i] = StorageResult{key, state.GetState(address, common.HexToHash(key)), common.ToHexArray(proof)}
|
storageProof[i] = StorageResult{key, (*hexutil.Big)(state.GetState(address, common.HexToHash(key)).Big()), common.ToHexArray(proof)}
|
||||||
} else {
|
} else {
|
||||||
storageProof[i] = StorageResult{key, common.Hash{}, []string{}}
|
storageProof[i] = StorageResult{key, &hexutil.Big{}, []string{}}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue