Ae Golang-SDK BUG

When I used the Golang-SDK for circular call transfer, I found that it crashed. Please check the log below

The calling code is a transfer, Remember to call in the for loop ,Usually dozens of times will appear

hash, err := aeternity.SignBroadcast(spendTx, account, node, "ae_mainnet")

err = aeternity.WaitSynchronous(hash, config.Client.WaitBlocks, node)



panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x179ef2a]

goroutine 222 [running]:
github.com/aeternity/aepp-sdk-go/aeternity.(*TxReceipt).Watch(0xc000172150, 0xc0008be660, 0xa, 0x1b71660, 0xc00074c088)
        /Users/sunbaixin/go/src/github.com/aeternity/aepp-sdk-go/aeternity/helpers.go:152 +0x1ca
created by github.com/aeternity/aepp-sdk-go/aeternity.WaitSynchronous
        /Users/sunbaixin/go/src/github.com/aeternity/aepp-sdk-go/aeternity/helpers.go:92 +0x89

feel free to provide a PR to fix the bug, the go sdk is under community maintanance

2 Likes

@arjan.chain maybe you want to have a look?

Sorry for the late reply, I was away. I will take a look if this hasn’t been solved yet.

This problem has not been solved yet, please have a look. I am not very proficient in Golang and I am not good at modifying it. It would be great if you could help me