goat-systems / go-tezos

Go Tezos Is a Go library that exposes and builds upon the Tezos RPC.
MIT License
71 stars 45 forks source link

README example does not work as-is #177

Open utdrmac opened 3 years ago

utdrmac commented 3 years ago

The example 'Getting A Block' in README.md does not compile copy/paste. The library is imported/aliased as goTezos but client.New() is called inside main(). This results in the following;

./utesting.go:8:2: imported and not used: "github.com/goat-systems/go-tezos/v4/rpc"
./utesting.go:22:14: undefined: client
utdrmac commented 3 years ago

example/transaction/transaction.go does not compile either. rpc.Transaction{} is missing Kind: rpc.Transaction member.

Also missing StorageLimit: "0" member