Truffle教程

Truffle 部署时获取账户

在迁移脚本中,可以获取当前使用的区块链账户,在部署期间使用。
这些账户与 web3.eth.getAccounts()返回的帐户列表相同。

module.exports = function(deployer, network, accounts) { // 在迁移脚本中使用帐户。 }
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4