Skip to content

Instantly share code, notes, and snippets.

Avatar

karmacoma karmacoma-eth

View GitHub Profile
View sending-ether-cheat-sheet.md

Sending Ether Cheat Sheet

TLDR

🥇 Instead of sending Ether, use the withdrawal pattern

🥈 If you really need to send Ether, use a safe wrapper like OpenZeppelin's Address.sendValue(addr, amount)

🥉 If you really need to send Ether without dependencies, use (bool success, ) = addr.call{value: amount}("")

@karmacoma-eth
karmacoma-eth / IERC1155MetadataURI.json
Created Sep 20, 2021
IERC1155MetadataURI JSON ABI
View IERC1155MetadataURI.json
[
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},