Skip to content

Instantly share code, notes, and snippets.

@Turupawn
Created August 30, 2025 14:05
Show Gist options
  • Save Turupawn/e513bdbe2f4f80c4d65693f5d7eea68c to your computer and use it in GitHub Desktop.
Save Turupawn/e513bdbe2f4f80c4d65693f5d7eea68c to your computer and use it in GitHub Desktop.
solidity jam
// 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();
}
}
@Turupawn
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment