【问题标题】:ERROR: [ resim publish wasm error] : thread 'main' panicked at 'Failed to instantiate WASM module: Instantiation("Function signature does not match")错误:[resim publish wasm error]:线程 \'main\' 在 \'Failed to instantiate WASM module: Instantiation(\"Function signature does not match\")
【发布时间】:2022-12-14 23:59:14
【问题描述】:

我正在尝试遵循基数初学者银行教程:

https://github.com/radixdlt/community-scrypto-examples/tree/main/basic/auction

系统规格: Windows 11(64 位) 编辑:VSCode

在发布项目之前遵循 repo 中提到的更新指南: https://docs.radixdlt.com/main/scrypto/getting-started/updating-scrypto.html:

    >> rustup update stable
    >> cd radixdlt-scrypto
    >> git pull origin main
    >> cargo install --path ./simulator
    >> resim reset

以上命令全部执行成功。

但是当我尝试使用以下方式发布包时:

`>> resim publish .`

我收到以下错误:

    PS C:\KAUSTUBH\DDS\project\community-scrypto-examples\basic\auction> resim publish .
    Compiling auction v0.1.0 (C:\KAUSTUBH\DDS\project\community-scrypto-examples\basic\auction)
    Finished release [optimized] target(s) in 22.76s
thread 'main' panicked at 'Failed to instantiate WASM module: Instantiation("Function signature does not match")', C:\KAUSTUBH\DDS\radix\scryptoc_core\radixdlt-scrypto\radix-engine\src\wasm\wasmi.rs:84:10
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

我试图导出一个变量

`>> $RUST_BACKTRACE=1`

我尝试再次发布,但再次出现相同的错误

【问题讨论】:

    标签: scrypto


    【解决方案1】:

    发生这种情况是因为您正在运行的示例尚未更新到最新的 Scrypto 版本

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-23
      • 2020-05-22
      • 1970-01-01
      • 2013-05-14
      • 2020-10-16
      • 2022-10-13
      • 1970-01-01
      • 2021-08-01
      相关资源
      最近更新 更多