Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在徘徊如何设置自定义帐户来执行交易?例如在松露控制台中我有类似的东西
Hello.deployed().then(function(){h = instance})
, 进而
h.exetuceTransaction()
默认情况下会从 accounts[0] 燃烧气体。如何指定我想从哪个账户发送此交易(例如 accouts[1])?
您只需from在调用executeTransaction({"from" : "0x..." })check文档时指定参数
from
executeTransaction({"from" : "0x..." })