Skip to content

Commit

Permalink
Merge branch 'main' into profitable-tx-selector
Browse files Browse the repository at this point in the history
  • Loading branch information
fab-10 committed Jan 10, 2024
2 parents 9020fd1 + d6f5e2d commit 229595e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ public final class SStore implements GasProjection {
public SStore(MessageFrame frame) {
this.frame = frame;
if (frame.stackSize() > 1) {
this.key = UInt256.fromBytes(frame.getStackItem(0));
final Account account = frame.getWorldUpdater().getAccount(frame.getRecipientAddress());
if (account == null) {
return;
}

this.key = UInt256.fromBytes(frame.getStackItem(0));
this.originalValue = account.getOriginalStorageValue(key);
this.currentValue = account.getStorageValue(key);
this.newValue = UInt256.fromBytes(frame.getStackItem(1));
Expand Down

0 comments on commit 229595e

Please sign in to comment.