pragma solidity ^0.8.7;
contract Test1 {
}
contract Test2 {
}
contract Test3 {
}
Contract | Executing cost(gas) |
---|---|
Test1 | 67066 |
Test2 | 67066 |
Test3 | 67066 |
pragma solidity ^0.8.7;
contract Test1 {
}
contract Test2 {
receive() external payable {
revert("Doesn't receive ETH");
}
}
contract Test3 {
fallback() external payable {
revert("Doesn't receive ETH");
}
}
Contract | Executing cost(gas) |
---|---|
Test1 | 67,066 |
Test2 | 105,435 |
Test3 | 103,503 |