Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrust committed Aug 20, 2024
1 parent 6905633 commit 8a6e2ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/test/EthStorageContractTest.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ contract EthStorageContractTest is Test {
blobIdxs[i] = i;
lengths[i] = 10 + i*10;
}
vm.warp(0);

uint256 sufficientCost = storageContract.upfrontPaymentInBatch(size);
uint256 insufficientCost = sufficientCost - 1;

// Expect the specific revert reason from _prepareBatchAppend due to insufficient msg.value
vm.expectRevert("StorageContract: not enough batch payment");
storageContract.putBlobs{value: insufficientCost}(keys, blobIdxs, lengths);
Expand Down

0 comments on commit 8a6e2ad

Please sign in to comment.