Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ public static void tLoadAction(Program program) {

byte[] data =
program.getContractState().getTransientStorageValue(address.getData(), key.getData());
DataWord value = data != null ? new DataWord(data) : DataWord.ZERO();
DataWord value = data != null ? new DataWord(data).clone() : DataWord.ZERO();

program.stackPush(value);
program.step();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,10 @@ public void testTransientStorageOperations() throws ContractValidateException {
program.getContractState().getTransientStorageValue(
program.getContractAddress().getData(), new DataWord(0x01).getData()));

op = new byte[] {0x60, 0x02, 0x60, 0x01, 0x5c, 0x16};
program = new Program(op, op, invoke, interTrx);
testOperations(program);

// TLOAD = 0x5c;
op = new byte[] {0x60, 0x01, 0x5c};
program = new Program(op, op, invoke, interTrx);
Expand Down