Skip to content

Instantly share code, notes, and snippets.

View zquestz's full-sized avatar

Josh Ellithorpe zquestz

View GitHub Profile
{
"request_id": "eafa52f0-aa3d-4637-9155-452a9880f498",
"user_id": 1,
"urls": [
"https://visionati.com/_assets/img/home-hero-wide.jpg"
],
"features": [],
"backends": [],
"tag_score": 0.8,
"capture_interval": 0,
@zquestz
zquestz / avocado.json
Created August 5, 2020 17:02
Avocado!
{
"request_id": "5925a471-93b5-42d2-b20a-93615fa6ddb6",
"user_id": 1,
"urls": [
"https://pbs.twimg.com/media/EeqtuGzU4AAQDRF\\?format\\=jpg"
],
"features": [],
"backends": [],
"tag_score": 0.8,
"capture_interval": 0,
@zquestz
zquestz / trace.txt
Created May 1, 2021 03:41
smartBCH stack trace
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0xd98f34]
goroutine 1 [running]:
github.com/smartbch/smartbch/staking.DistributeFee(0x747af, 0xc00062bda0, 0x1607ac8, 0xc000228000, 0xc0001b9310, 0x0, 0x0, 0x0, 0x0, 0xc00010f6e0, ...)
/smart_bch/smartbch/staking/staking.go:382 +0x3d4
github.com/smartbch/smartbch/app.(*App).Commit(0xc000d28000, 0xc000cd6a60, 0xc00010f6c0, 0xc0001b96c8, 0xddaa85)
/smart_bch/smartbch/app/app.go:517 +0xa99
github.com/tendermint/tendermint/abci/client.(*localClient).CommitSync(0xc005703320, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/tendermint/[email protected]/abci/client/local_client.go:258 +0xab
const TOKEN_CONTRACT_ADDRESS="0xc70c7718C7f1CCd906534C2c4a76914173EC2c44"
const YOUR_ETH_ADDRESS="0x6cdde7dd0acc56cabfc2315791016f7c334d72c3"
// The minimum ABI to get SEP20 Token balance
const minABI = [
{
constant: true,
inputs: [{ name: "_owner", type: "address" }],
name: "balanceOf",
outputs: [{ name: "balance", type: "uint256" }],