Open tangkunprimeledger opened 5 years ago
I've created test and it passes. Why do you think it's bugged?
@Test
public void testOne() {
byte[] input = new byte[] {0x01};
DataWord one = DataWord.of(input);
assertArrayEquals(Hex.decode("0000000000000000000000000000000000000000000000000000000000000001"), one.getData());
}
@zilm13 Are you sure your source code(DataWord ) is consistent with mine?
@tangkunprimeledger mine is develop
class https://github.com/ethereum/ethereumj/blob/develop/ethereumj-core/src/main/java/org/ethereum/vm/DataWord.java static ONE is null, bug in line 81;