Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void contractModifyingStorageInFunctionTest(TestInfo testInfo) {
Bytes.fromHexString(
"0x608060405234801561001057600080fd5b50610304806100206000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c8063501e82121461005c5780636cc014de1461007a578063a314150f14610098578063a5d666a9146100b6578063e8af2fa5146100d4575b600080fd5b6100646100de565b60405161007191906101ca565b60405180910390f35b6100826100e4565b60405161008f91906101ca565b60405180910390f35b6100a06100ea565b6040516100ad91906101ca565b60405180910390f35b6100be6100f0565b6040516100cb91906101ca565b60405180910390f35b6100dc6100f6565b005b60005481565b60015481565b60025481565b60035481565b60008081905550600180819055506002808190555060038081905550600a60005461012191906101e5565b600081905550600b60015461013691906101e5565b600181905550600c60025461014b91906101e5565b600281905550600d60035461016091906101e5565b60038190555060008054610174919061023b565b6000819055506014600154610189919061023b565b600181905550601560025461019e919061023b565b60028190555060156003546101b3919061023b565b600381905550565b6101c481610295565b82525050565b60006020820190506101df60008301846101bb565b92915050565b60006101f082610295565b91506101fb83610295565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156102305761022f61029f565b5b828201905092915050565b600061024682610295565b915061025183610295565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561028a5761028961029f565b5b828202905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212200d443753b26ea215c94e8fd1b03e4d389ebc740d96823003d127316393455da664736f6c63430008000033"))
.transactionType(TransactionType.FRONTIER)
.gasLimit(0x38444C0L)
.gasLimit(16777216L)
.value(Wei.ZERO)
.keyPair(keyPair)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void modexpCall(int bbs, int ebs, int mbs, TestInfo testInfo) {
.sender(senderAccount)
.to(callPRC)
.keyPair(senderKeyPair)
.gasLimit(30000000L)
.gasLimit(16777216L)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Gas limit reduction risks MODEXP tests failing you

Gas limit reduced from 30,000,000 to 16,777,216 (44% reduction) may be insufficient for MODEXP precompile calls with large parameters. The test is parameterized with byte sizes up to 513 bytes for base, exponent, and modulus, and MODEXP gas costs scale significantly with input size. This reduction could cause legitimate test cases to fail with out-of-gas errors, potentially masking whether the test failures are due to intended validation logic or insufficient gas.

Fix in Cursor Fix in Web

.value(Wei.of(10000000))
.build();

Expand Down
Loading