Skip to content

Instantly share code, notes, and snippets.

@peterargue
peterargue / compare_tx_ids.go
Created July 7, 2023 18:58
flow-go-sdk bug repro for tx ID mismatch
package main
import (
"context"
"fmt"
"log"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
@peterargue
peterargue / find_events.sh
Created July 5, 2022 18:29
Search for events from start height to latest using flow-cli
#!/bin/bash
EVENT=flow.AccountContractAdded
START=32795233
END=$(flow blocks get latest -n mainnet -o json | jq '.height')
echo "Start: ${START}"
echo "End: ${END}"
echo "Event: ${EVENT}"
for (( i=${START}; i<=${END}; i += 251 )); do