Browse Source

fixed encoding unformatted data in eth_getStorageAt

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
5c64ba8aae
  1. 2
      libweb3jsonrpc/WebThreeStubServerBase.cpp

2
libweb3jsonrpc/WebThreeStubServerBase.cpp

@ -142,7 +142,7 @@ string WebThreeStubServerBase::eth_getStorageAt(string const& _address, string c
{
try
{
return toJS(client()->stateAt(jsToAddress(_address), jsToU256(_position), jsToBlockNumber(_blockNumber)));
return toJS(toCompactBigEndian(client()->stateAt(jsToAddress(_address), jsToU256(_position), jsToBlockNumber(_blockNumber)), 1));
}
catch (...)
{

Loading…
Cancel
Save