goat-systems / go-tezos

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

forge/operations should be POST not GET #24

Closed utdrmac closed 5 years ago

utdrmac commented 5 years ago

Calling CreateBatchPayment() leads to calling forgeOperationBytes() which calls client.GetReponse() https://github.com/DefinitelyNotAGoat/go-tezos/blob/66b1b13b64b1c78053a391c495c0d97c6a70e16f/goTezosNode.go#L44

This is a POST operation, not a GET, therefore the call fails.

$ ~/tezos/tezos-client rpc list /chains/main/blocks/head/helpers/forge/operations

Available services:

  - POST /chains/main/blocks/head/helpers/forge/operations
      Forge an operation
utdrmac commented 5 years ago

Fixed #25

DefinitelyNotAGoat commented 5 years ago

Thanks for the fix, I will close this when your pull request gets merged.