0

我一直在关注关于可升级合约的不同教程并部署了一个透明代理,但我在 ropsten etherscan 上看不到合约代码,所以我决定恢复到一个简单的实现(我是一个初学者),只是使用普通的 OpenZeppelin 合约。不幸的是,即使在将我的新合同松露成功部署到 ropsten 测试网之后,我也无法在 ropsten etherscan 上查看合同的源代码,我在这里遗漏了什么吗?提前谢谢!

======================

   Deploying 'Migrations'
   ----------------------
   > transaction hash:    0x92de2f22bc7b1f0071fccfa6f137100280b2edab9f141b651b0f21a4af8102b3
   > Blocks: 1            Seconds: 28
   > contract address:    0xe12b13D05d62049AB4B954D15D7CFc86610fe00C
   > block number:        10686508
   > block timestamp:     1626975812
   > account:             0x26C437D224EfED14e6772DD3F67C8b17092332Ac
   > balance:             3.964996443697679138
   > gas used:            176513 (0x2b181)
   > gas price:           1.029549111 gwei
   > value sent:          0 ETH
   > total cost:          0.000181728802229943 ETH

   Pausing for 2 confirmations...
   ------------------------------
   > confirmation number: 1 (block: 10686509)
   > confirmation number: 2 (block: 10686510)

   > Saving migration to chain.
   > Saving artifacts
   -------------------------------------
   > Total cost:     0.000181728802229943 ETH


2_contract_migration.js
=======================

   Deploying 'MyContract'
   -----------------------
   > transaction hash:    0x3aabc4f7e07219077727d45ddc63b90fe26c1e176658c7ebfd1f49ff8c9af7aa
   > Blocks: 1            Seconds: 16
   > contract address:    0x41Bdd9Ba202015f4c9eFb18451D4AC109e4260e1
   > block number:        10686513
   > block timestamp:     1626975906
   > account:             0x26C437D224EfED14e6772DD3F67C8b17092332Ac
   > balance:             3.960927153925053291
   > gas used:            3906817 (0x3b9d01)
   > gas price:           1.029549111 gwei
   > value sent:          0 ETH
   > total cost:          0.004022259969189687 ETH

   Pausing for 2 confirmations...
   ------------------------------
   > confirmation number: 1 (block: 10686514)
   > confirmation number: 2 (block: 10686515)

   > Saving migration to chain.
   > Saving artifacts
   -------------------------------------
   > Total cost:     0.004022259969189687 ETH


Summary
=======
> Total deployments:   2
> Final cost:          0.00420398877141963 ETH
4

0 回答 0