forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mint flow (implement charging gas, update handling invalid ins…
…tructions), rollback changes in fee collecting
- Loading branch information
Showing
11 changed files
with
280 additions
and
214 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 was deleted.
Oops, something went wrong.
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,19 @@ | ||
{ | ||
"language": "Solidity", | ||
"sources": { | ||
"MintState.sol": { | ||
"content": "// SPDX-License-Identifier: MIT\n\npragma solidity 0.8.19;\n\ncontract MintState {\n address public owner;\n uint256 public mintLimit;\n\n event Mint(uint256 amount, bytes32 burnTxHash, uint8 burnTxNetwork);\n\n modifier onlyOwner {\n require(msg.sender == owner, \"Available only for owner\");\n _;\n }\n\n function transferOwnership(address newOwner) external onlyOwner {\n require(newOwner != address(0), \"Zero address is not a valid owner\");\n owner = newOwner;\n }\n\n function changeMintLimit(uint256 newLimit) external onlyOwner {\n require(newLimit < mintLimit, \"Mint limit cannot be increased\");\n mintLimit = newLimit;\n }\n}\n" | ||
} | ||
}, | ||
"settings": { | ||
"optimizer": { | ||
"enabled": false, | ||
"runs": 200 | ||
}, | ||
"outputSelection": { | ||
"*": { | ||
"*": ["*"] | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.