-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug estimate used gas and estimation for WeightV2 (#1101)
* Fix estimate used gas and estimation for WeightV2 * fmt * suggestion * add ts tests * try to fix ts tests with bigger txns
- Loading branch information
Showing
5 changed files
with
496 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity >=0.8.2 <0.9.0; | ||
|
||
contract StorageLoop { | ||
mapping(address => uint) public map; | ||
|
||
// n=1 30k | ||
// n=10 37k | ||
// n=100 100k | ||
// n=250 205k | ||
// n=500 380k | ||
// n=1000 745k | ||
function storageLoop( | ||
uint16 n, | ||
address _to, | ||
uint _amount | ||
) public { | ||
for (uint16 i = 0; i < n; i++) { | ||
map[_to] += _amount; | ||
} | ||
} | ||
} |
Oops, something went wrong.