【问题标题】:How to deploy a smartcontract in EOS on testnet using SET after creating abi and wsm files?创建 abi 和 wsm 文件后,如何使用 SET 在测试网上的 EOS 中部署智能合约?
【发布时间】:2020-04-03 07:14:38
【问题描述】:
aditib@WJLP-1098:~/contracts$ cleos -u https://jungle.eosio.cr:443 set contract adtester1234 hello/ -p adtester1234@active

Failed to get existing code hash, continue without duplicate check...
Reading WASM from /home/aditib/contracts/hello/hello.wasm...
Publishing contract...
Error 3090003: Provided keys, permissions, and delays do not satisfy declared authorizations
Ensure that you have the related private keys inside your wallet and your wallet is unlocked.
Error Details:
transaction declares authority '{"actor":"adtester1234","permission":"active"}', but does not have signatures for it.

我在丛林测试网上注册了一个名为 adtester1234 的帐户。它显示在资源管理器中,我检查了。

此外,钱包已解锁,并且确实包含帐户所需的公钥和私钥。

aditib@WJLP-1098:~/contracts$ cleos wallet private_keys -n jungle-wallet-2 --password PW5K1SUrrGcraekXgBQN3137qfkqSyFrVVRdkxWgzpaZnJLMYPg4n
[[
    "EOS5HWzxBoDTGj2hMeA9WGphVCbXmcxB78QCTWgPybyCUvNnyVznH",
    "5JBGrBZBhQ2Zjqbj4z8dKyu9fvwowg4sdqZ5vbkM9kSNVJrH7Db"
  ]
]

我尝试添加签名交易:

aditib@WJLP-1098:~/contracts$ cleos -u https://jungle.eosio.cr:443 set contract adtester1234 hello/ -p adtester1234@active -s

Failed to get existing code hash, continue without duplicate check...
Reading WASM from /home/aditib/contracts/hello/hello.wasm...
Publishing contract...
Failed to connect to nodeos at https://jungle.eosio.cr:443; is nodeos running?

如果我要连接到测试网端点,nodeos 是否应该运行?

我在 Windows 上使用 UBUNTU 18.04 LTS。我在stackoverflow上提到了类似的问题,但它对我不起作用。我希望有人可以指导我。

为什么会出现这个错误?如何解决?为什么我无法获取代码哈希? 提前致谢!

【问题讨论】:

  • 您确定https://jungle.eosio.cr:443 API 端点已启动并正常工作吗?也许试试这个https://jungle.eosn.io:443/
  • 我也试过其他端点,同样的错误。
  • 但是这个端点正在工作。谢谢。

标签: smartcontracts eos


【解决方案1】:

我使用的端点不工作。

这是我尝试并正在工作的工作端点列表:

【讨论】:

    猜你喜欢
    • 2019-01-19
    • 2020-12-13
    • 2018-12-07
    • 2019-06-15
    • 1970-01-01
    • 1970-01-01
    • 2020-04-11
    • 2023-03-14
    • 2019-09-09
    相关资源
    最近更新 更多