xuperchain/xuper-sdk-go

not support "nofee"

Opened this issue · 2 comments

xchain.go

	utxoOutput := &pb.UtxoOutput{
		//		UtxoList: utxolist,
		//		TotalSelected: totalSelected.String(),
		UtxoList:      response.UtxoOutput.UtxoList,
		TotalSelected: response.UtxoOutput.TotalSelected,

"response.UtxoOutput" will be nil when invoke contract

error message

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

goroutine 1 [running]:
github.com/xuperchain/xuper-sdk-go/xchain.(*Xchain).GenRealTxOnly(0xc00026c010, 0xc0002967d0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/root/go/pkg/mod/github.com/xuperchain/xuper-sdk-go@v0.0.0-20200813040444-ee9fc1751908/xchain/xchain.go:479 +0xa5
github.com/xuperchain/xuper-sdk-go/xchain.(*Xchain).GenCompleteTxAndPost(0xc00026c010, 0xc0002967d0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
	/root/go/pkg/mod/github.com/xuperchain/xuper-sdk-go@v0.0.0-20200813040444-ee9fc1751908/xchain/xchain.go:745 +0x1097
github.com/xuperchain/xuper-sdk-go/contract.(*WasmContract).PostWasmContract(0xc00026c000, 0xc0002967d0, 0x0, 0x0, 0x0, 0x0)
	/root/go/pkg/mod/github.com/xuperchain/xuper-sdk-go@v0.0.0-20200813040444-ee9fc1751908/contract/contract.go:120 +0x416
github.com/xuperchain/xuper-sdk-go/contract.(*WasmContract).InvokeWasmContract(0xc00026c000, 0xbf6580, 0x8, 0xc0001a3e48, 0x0, 0x0, 0x0, 0x0)
	/root/go/pkg/mod/github.com/xuperchain/xuper-sdk-go@v0.0.0-20200813040444-ee9fc1751908/contract/contract.go:132 +0x205

使用的什么版本的链?

你好,这个问题解决了吗