The nixos.org website suggests to use:
sh <(curl -L https://nixos.org/nix/install)For macOS on Intel (x86_64) or Apple Silicon (arm64) based macs, we need to use
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>AMFolderAction</key> | |
| <string>AMAddingFolderItems</string> | |
| </dict> | |
| </plist> | 
| // RUN with a recent node.js version, using "node gen-types.mjs" | |
| // DEPENDS on typescript and ts-morph | |
| import { Project } from "ts-morph"; | |
| import { writeFileSync } from "fs"; | |
| const project = new Project({ | |
| tsConfigFilePath: "tsconfig.json", | |
| }); | 
The nixos.org website suggests to use:
sh <(curl -L https://nixos.org/nix/install)For macOS on Intel (x86_64) or Apple Silicon (arm64) based macs, we need to use
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume| // SPDX-License-Identifier: Apache-2.0 | |
| pragma solidity 0.6.8; | |
| library SafeMath { | |
| /** | |
| * @dev Returns the addition of two unsigned integers, reverting on | |
| * overflow. | |
| * | 
| const path = require("path"); | |
| const fs = require("fs"); | |
| const solc = require("solc"); | |
| const compile = filename => { | |
| const sourcePath = path.join(__dirname, filename); | |
| const input = { | |
| sources: { | |
| [sourcePath]: { | 
I recently stumbled upon Falsehoods programmers believe about time zones, which got a good laugh out of me. It reminded me of other great lists of falsehoods, such as about names or time, and made me look for an equivalent for Ethereum. Having found none, here is my humble contribution to this set.
estimateGas will return the gas required by my transactionCalling estimateGas will return the gas that your transaction would require if it were mined now. The current state of the chain may be very different to the state in which your tx will get mined. So when your tx i