mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-10 02:43:36 +00:00
Fix to read 0x values for storage keys
This commit is contained in:
parent
33b59c6583
commit
c2eff6bd93
@ -57,7 +57,11 @@ public class AccountState {
|
||||
if (hexVal) {
|
||||
key = new ByteArrayWrapper(Hex.decode(keyS.substring(2)));
|
||||
} else {
|
||||
byte[] data = ByteUtil.bigIntegerToBytes(new BigInteger(keyS));
|
||||
byte[] data;
|
||||
if (keyS != null && keyS.length() > 2)
|
||||
data = Hex.decode(keyS);
|
||||
else
|
||||
data = new byte[0];
|
||||
key = new ByteArrayWrapper(data);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user