Created
August 30, 2025 14:05
-
-
Save Turupawn/e513bdbe2f4f80c4d65693f5d7eea68c to your computer and use it in GitHub Desktop.
solidity jam
This file contains hidden or 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
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.7.0 <0.9.0; | |
| contract Test { | |
| uint amountCount; | |
| mapping (address org => uint amount) amountCountOrg; | |
| function deposit(uint amount, address org) public payable { | |
| require(msg.value >= 0.0001 ether, ""); | |
| amountCountOrg[org] += msg.value; | |
| } | |
| address stateAddress = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4; | |
| function withdraw(uint amount) public { | |
| address recipient = payable(msg.sender); | |
| (bool sent, bytes memory data) = recipient.call{value: amount}(""); | |
| require(sent, "Failed to send Ether"); | |
| if(fdsa) | |
| revert(); | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://ipfs.tech/
https://eth-converter.com/