Comments (3)
测试代码:
func TestInvokeWasmContract2(t *testing.T) { acc, _ := account.RetrieveAccount(mnemonic, 1) wasmContract := InitWasmContract(acc, node, "xuper", "counter", "XC1111111111111111@xuper") wg := &sync.WaitGroup{} for i := 0; i < 4; i++ { wg.Add(1) go func() { defer wg.Done() txid, err := wasmContract.InvokeWasmContract("increase", map[string]string{"key": "counter"}) if err != nil { t.Log("err:", err) return } t.Log("txid:", txid) }() } wg.Wait() }错误:
--- PASS: TestInvokeWasmContract2 (3.82s) contract_test.go:191: txid: 958bdd5540491fb90707cecd2b07febb3523a1762cdbd86f2a53a07700d3bd4a contract_test.go:188: err: Failed to post tx: UTXOVM_NOT_FOUND_ERROR contract_test.go:188: err: Failed to post tx: UTXOVM_NOT_FOUND_ERROR contract_test.go:188: err: Failed to post tx: UTXOVM_NOT_FOUND_ERROR
我也碰到了这个错误,请问解决了么?
from xuper-sdk-go.
测试代码:
func TestInvokeWasmContract2(t *testing.T) { acc, _ := account.RetrieveAccount(mnemonic, 1) wasmContract := InitWasmContract(acc, node, "xuper", "counter", "XC1111111111111111@xuper") wg := &sync.WaitGroup{} for i := 0; i < 4; i++ { wg.Add(1) go func() { defer wg.Done() txid, err := wasmContract.InvokeWasmContract("increase", map[string]string{"key": "counter"}) if err != nil { t.Log("err:", err) return } t.Log("txid:", txid) }() } wg.Wait() }错误:
--- PASS: TestInvokeWasmContract2 (3.82s) contract_test.go:191: txid: 958bdd5540491fb90707cecd2b07febb3523a1762cdbd86f2a53a07700d3bd4a contract_test.go:188: err: Failed to post tx: UTXOVM_NOT_FOUND_ERROR contract_test.go:188: err: Failed to post tx: UTXOVM_NOT_FOUND_ERROR contract_test.go:188: err: Failed to post tx: UTXOVM_NOT_FOUND_ERROR我也碰到了这个错误,请问解决了么?
用v2版本的sdk
from xuper-sdk-go.
我用的就是v2的,你那里没有问题?
from xuper-sdk-go.
Related Issues (20)
- 合约查询,返回结果与cli命令结果不一致 HOT 1
- 查询区块Proposer的一些疑问 HOT 2
- go get github.com/xuperchain/xuper-sdk-go/v2 出错 HOT 4
- 调用智能合约函数时报错 HOT 2
- 合约event问题 HOT 6
- panic: runtime error: invalid memory address or nil pointer dereference HOT 6
- go sdk 使用国密生成的账号,在进行 EVM 与 Xchain 地址互转时结果不一致
- `普通账号`给`合约账号`转账出现:TX_VERIFICATION_ERROR错误 HOT 7
- go sdk 添加修改XPOA共识 候选人列表的方法
- go sdk 支持临时锁定utxo功能 HOT 1
- 调用智能合约时失败了 HOT 1
- 没有evm合约升级方法 HOT 3
- 合约部署消耗fee&gas的问题 HOT 2
- 订阅如何拿到solidity抛出的emit数据? HOT 4
- make时报错 HOT 4
- XuperChain使用Go-SDK调用模板合约“文件hash上链时,更改文件hash_id后仍出现”such hash has existed already的报错 HOT 1
- 合约调用错误问题 HOT 1
- Get block event err: rpc error: code = Unknown desc = maximum connections exceeded HOT 2
- 有啥方法可以查询出合约对应得module类型? HOT 1
- rpc error: code = Unknown desc = Err:500-50404-submit tx failed+err:this utxo can not be found HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xuper-sdk-go.