Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not support "nofee" #24

Open
zhangxuelai opened this issue Nov 2, 2020 · 2 comments
Open

not support "nofee" #24

zhangxuelai opened this issue Nov 2, 2020 · 2 comments

Comments

@zhangxuelai
Copy link

zhangxuelai commented Nov 2, 2020

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/[email protected]/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/[email protected]/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/[email protected]/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/[email protected]/contract/contract.go:132 +0x205
@superlitian
Copy link
Contributor

使用的什么版本的链?

@superlitian
Copy link
Contributor

你好,这个问题解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants