小编que*_*nat的帖子

无法构建智能合约 - 使用 erdpy 构建合约编译 elrond-wasm 时出错

当我尝试使用以下命令从这里构建乒乓球智能合约时:

erdpy build contract
Run Code Online (Sandbox Code Playgroud)

我没有得到以下预期输出:

INFO:projects.core:WASM file generated: output/ping-pong.wasm
Run Code Online (Sandbox Code Playgroud)

因为文件中出现以下错误sc_results.rs

Compiling elrond-codec v0.5.3
Compiling elrond-wasm v0.18.2
error[E0432]: unresolved import `core::ops::FromResidual`
--> /Users/<username>/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-wasm-0.18.2/src/types/io/sc_result.rs:7:30
...
error[E0437]: type Output is not a member of trait `Try`
--> /Users/<username>/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-wasm-0.18.2/src/types/io/sc_result.rs:62:5
...
error[E0437]: type Residual is not a member of trait `Try`
--> /Users/<username>/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-wasm-0.18.2/src/types/io/sc_result.rs:63:5
...
error[E0407]: method branch is not a member of trait `Try`
--> /Users/<username>/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-wasm-0.18.2/src/types/io/sc_result.rs:65:5
...
error[E0407]: method from_output is not a member of trait `Try`
--> /Users/<username>/elrondsdk/vendor-rust/registry/src/github.com-1ecc6299db9ec823/elrond-wasm-0.18.2/src/types/io/sc_result.rs:71:5
...
error aborting …
Run Code Online (Sandbox Code Playgroud)

erdpy multiversx

1
推荐指数
1
解决办法
616
查看次数

标签 统计

erdpy ×1

multiversx ×1