From 782f953f23b61c0ae57e0c3d0f8e296c5a8923d1 Mon Sep 17 00:00:00 2001 From: qiang Date: Tue, 26 Nov 2024 15:12:37 +0800 Subject: [PATCH] fix comments --- contracts/EthStorageContractL2.sol | 2 +- contracts/test/EthStorageContractL2Test.t.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/EthStorageContractL2.sol b/contracts/EthStorageContractL2.sol index 81d4cbd..6743311 100644 --- a/contracts/EthStorageContractL2.sol +++ b/contracts/EthStorageContractL2.sol @@ -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)) { diff --git a/contracts/test/EthStorageContractL2Test.t.sol b/contracts/test/EthStorageContractL2Test.t.sol index b3ce28b..b5b2e9b 100644 --- a/contracts/test/EthStorageContractL2Test.t.sol +++ b/contracts/test/EthStorageContractL2Test.t.sol @@ -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);