aeternity / aepp-sdk-go

Golang SDK to interact with the Æternity blockchain
ISC License
18 stars 10 forks source link

can not work example #117

Closed smirkcat closed 5 years ago

smirkcat commented 5 years ago

image

the error

[POST /transactions][400] postTransactionBadRequest Invalid api encoding

smirkcat commented 5 years ago

the old aeternity.BaseEncodeTx(&tx) is ok but the new aeternity.SerializeTx(&tx) is not work

randomshinichi commented 5 years ago

Which version are you using? Could you provide some detail on how it doesn't work?

Works fine here:

https://github.com/aeternity/aepp-sdk-go/blob/5f74aec64940317e8f5cef711ef53cf75b048d4d/aeternity/helpers.go#L409

smirkcat commented 5 years ago

oh i see image

randomshinichi commented 5 years ago

Yeah, the examples are basically copy pasted from integration tests and edited a bit to make things clearer. And in the process I obviously broke some things.

With SignBroadcastWaitTransaction() we won't have to worry about such things anymore.

randomshinichi commented 5 years ago

changed the example in the readme now