Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhodl committed Nov 26, 2024
1 parent 155c9d4 commit 782f953
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/EthStorageContractL2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ contract EthStorageContractL2 is EthStorageContract2 {
if (soulGasToken != address(0)) {
sgtCharged = ISoulGasToken(soulGasToken).chargeFromOrigin(totalPayment);
}
require(msg.value >= totalPayment - sgtCharged, "StorageContract: not enough batch payment");
require(msg.value >= totalPayment - sgtCharged, "EthStorageContractL2: not enough batch payment");

uint256 shardId = kvEntryCount >> SHARD_ENTRY_BITS; // shard id after the batch
if (shardId > (kvEntryCountPrev >> SHARD_ENTRY_BITS)) {
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/EthStorageContractL2Test.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ contract EthStorageContractL2Test is Test {
}
vm.blobhashes(hashes);

vm.expectRevert("StorageContract: not enough batch payment");
vm.expectRevert("EthStorageContractL2: not enough batch payment");
l2Contract.putBlobs{value: 1500000000000000 * 5}(keys, blobIdxs, lengths);

l2Contract.putBlobs{value: 1500000000000000 * 6}(keys, blobIdxs, lengths);
Expand Down

0 comments on commit 782f953

Please sign in to comment.