当我进入松露控制台并开始与部署的契约松露使用第一个地址进行交互时,如何更改测试地址?
user@user:~/workspace/smart-contract$ truffle console
truffle(ganache)> setAddress("0x0000000....); // how to set the addres ? 发布于 2019-01-17 10:08:16
编辑块菌的truffle.js文件,以使用默认地址以外的其他地址,而默认地址恰好是加纳赫块链中的第一个地址。您可以通过将任何可用的ganache地址分配给文件中的from属性来做到这一点。
https://ethereum.stackexchange.com/questions/65699
复制相似问题