Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrust committed Sep 13, 2024
1 parent 51dc2f0 commit ab4cae2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions 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 @@ -89,7 +89,7 @@ contract EthStorageContractTest is Test {
keys[1] = bytes32(uint256(2));
lengths[1] = 30;

sufficientCost = storageContract.upfrontPayment();
sufficientCost = storageContract.upfrontPayment() + 2 * storageContract.updateCost();
storageContract.putBlobs{value: sufficientCost}(keys, blobIdxs, lengths);
assertEq(storageContract.kvEntryCount(), 3);
assertEq(storageContract.hash(bytes32(uint256(0))), bytes32(uint256(1 << 8 * 8)));
Expand Down
4 changes: 4 additions & 0 deletions contracts/test/TestEthStorageContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,8 @@ contract TestEthStorageContract is EthStorageContract {
return
_mineWithFixedHash0(initHash0, shardId, miner, nonce, encodedSamples, masks, inclusiveProofs, decodeProof);
}

function updateCost() public view returns (uint256) {
return UPDATE_COST;
}
}

0 comments on commit ab4cae2

Please sign in to comment.