在以太坊的松露中,为什么说收信人地址不是合同地址?

时间:2018-09-27 18:54:47

标签: ethereum truffle

我正在关注https://medium.com/coinmonks/test-a-smart-contract-with-truffle-3eb8e1929370,后者正在与Truffle运行一个简单的以太坊合约。我正在同时运行Ganache。如下所示,我的拍卖合同是在0xbed96e2beeb4e25782ee27ae0a35a958f34ac706上创建的

Running migration: 1_initial_migration.js Replacing Migrations... ... 0x0328f3058357d18edad7308319aa79ec82a954f6bebf7386a0bfcbdb95ba04c1 Migrations: 0x11f6c7f036612807e2097039642bee884b586945 Saving successful migration to network... ... 0xbd425412254a8f866635effe281b200d193fd9c34cec0502337c0b84b9b1582e Saving artifacts... Running migration: 2_deploy_contracts.js Replacing Auction... ... 0x9416e1b36ec59b95afb4e6c3fbb0e4dda21ba822db7ca63f22122fd4c2e3a29a Auction: 0xbed96e2beeb4e25782ee27ae0a35a958f34ac706 Saving artifacts...

但是,当我运行Auction.at(“ 0xbed96e2beeb4e25782ee27ae0a35a958f34ac706”)时,我收到有关收件人地址不是合同的错误:

truffle(develop)> Auction.at("0xbed96e2beeb4e25782ee27ae0a35a958f34ac706").manager.call(); Error: Attempting to run transaction which calls a contract function, but recipient address 0xbed96e2beeb4e25782ee27ae0a35a958f34ac706 is not a contract address

如果我尝试以下操作,也会发生同样的事情:

truffle(develop)> Auction.at("0xbed96e2beeb4e25782ee27ae0a35a958f34ac706").auction(3, {from: "0x627306090abab3a6e1400e9345bc60c78a8baf57"}); Error: Attempting to run transaction which calls a contract function, but recipient address 0xbed96e2beeb4e25782ee27ae0a35a958f34ac706 is not a contract address

我在做什么错了?

0 个答案:

没有答案