This commit is contained in:
Ricardo Guilherme Schmidt
2023-09-26 02:41:52 -03:00
parent df3283f42f
commit 7db2900a30
3 changed files with 6 additions and 7 deletions

View File

@@ -1,12 +1,12 @@
| contracts/MiniMeToken.sol:MiniMeToken contract | | | | | |
|------------------------------------------------|-----------------|--------|--------|---------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1711400 | 10009 | | | | |
| 1804309 | 10009 | | | | |
| Function Name | min | avg | median | max | # calls |
| allowance | 0 | 62 | 0 | 808 | 13 |
| approve | 0 | 15018 | 14715 | 31708 | 10 |
| approveAndCall | 0 | 31201 | 0 | 93603 | 3 |
| balanceOf | 0 | 406 | 0 | 2753 | 59 |
| balanceOf | 0 | 555 | 0 | 2753 | 63 |
| balanceOfAt | 0 | 1308 | 377 | 4027 | 54 |
| changeController | 0 | 507 | 0 | 3558 | 10 |
| claimTokens | 9537 | 41281 | 57154 | 57154 | 3 |
@@ -15,13 +15,13 @@
| decimals | 0 | 0 | 0 | 0 | 9 |
| destroyTokens | 2308 | 5206 | 4310 | 9001 | 3 |
| enableTransfers | 0 | 0 | 0 | 0 | 3 |
| generateTokens | 0 | 16254 | 0 | 95808 | 54 |
| generateTokens | 0 | 16069 | 0 | 95808 | 54 |
| name | 0 | 0 | 0 | 0 | 9 |
| parentSnapShotBlock | 0 | 0 | 0 | 0 | 10 |
| parentToken | 0 | 0 | 0 | 0 | 10 |
| receive | 7960 | 7979 | 7979 | 7998 | 2 |
| symbol | 0 | 0 | 0 | 0 | 9 |
| totalSupply | 0 | 201 | 0 | 1911 | 19 |
| totalSupply | 0 | 315 | 0 | 2480 | 20 |
| totalSupplyAt | 0 | 1349 | 0 | 3659 | 11 |
| transfer | 526 | 39282 | 50395 | 93084 | 20 |
| transferFrom | 0 | 16837 | 3495 | 66596 | 7 |

View File

@@ -28,7 +28,7 @@ ReceiveTest:testDeployment() (gas: 26595)
ReceiveTest:testRejectingEther() (gas: 18691)
ReentrancyTest:testAttack() (gas: 229394)
TestSnapshotReads:testDeployment() (gas: 26550)
TestSnapshotReads:testSnapshotReads() (gas: 747396)
TestSnapshotReads:testSnapshotReads() (gas: 755601)
TransferTest:testDeployment() (gas: 26617)
TransferTest:testDoubleTransfer() (gas: 92425)
TransferTest:testDoubleTransfer2() (gas: 70578)

View File

@@ -922,13 +922,12 @@ contract TestSnapshotReads is MiniMeTokenTest {
}
function testSnapshotReads() public {
assertEq(minimeToken.totalSupply(), 0, "initial total supply should be correct");
assertEq(minimeToken.balanceOf(accounts[0]), 0, "initial balance of account 0 should be correct");
assertEq(minimeToken.balanceOf(accounts[1]), 0, "initial balance of account 1 should be correct");
assertEq(minimeToken.balanceOf(accounts[2]), 0, "initial balance of account 2 should be correct");
assertEq(minimeToken.balanceOf(accounts[3]), 0, "initial balance of account 3 should be correct");
_generateTokens(accounts[0], 10);
_generateTokens(accounts[1], 5);
_generateTokens(accounts[2], 3);