sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
import { utils } from "ethers"; | |
export function convert(value, unit = "ether") { | |
if (value instanceof ethers.BigNumber) { | |
return utils.formatUnits(value.toString(), unit); | |
} else { | |
return ethers.BigNumber.from(value); | |
} | |
} |
#!/bin/bash | |
# This script generates a self-signed certificate for a local development server on macOS | |
# It is inspired by https://github.com/matt-goldman/local-signin-with-apple for windows powershell | |
# Default URL and certificate password | |
url="local-dev.com" | |
certPassword="" | |
# Check for root privileges |