Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Vovchyk <[email protected]>
  • Loading branch information
fmacleal and Vovchyk authored Dec 16, 2024
1 parent 2120e87 commit ec733dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public void addTransientStorageBytes(RskAddress addr, DataWord key, byte[] value
byte[] triekey = trieKeyMapper.getAccountStorageKey(addr, key);

// Special case: if the value is an empty vector, we pass "null" which commands the trie to remove the item.
// Note that if the call comes from addStorageRow(), this method will already have replaced 0 by null, so the
// Note that if the call comes from addTransientStorageRow(), this method will already have replaced 0 by null, so the
// conversion here only applies if this is called directly. If suppose this only occurs in tests, but it can
// also occur in precompiled contracts that store data directly using this method.
if (value == null || value.length == 0) {
Expand Down

0 comments on commit ec733dd

Please sign in to comment.