Timeline for How to act as another wallet when using Truffle exec scripts?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 22 at 22:25 | vote | accept | Agilulfo | ||
Sep 20, 2020 at 17:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 21, 2020 at 6:06 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 16, 2020 at 5:42 | answer | added | Ismael♦ | timeline score: 1 | |
Apr 12, 2020 at 14:24 | history | edited | Agilulfo | CC BY-SA 4.0 |
added 321 characters in body
|
Apr 12, 2020 at 14:19 | comment | added | Agilulfo | I tried it but still didn't succeed. What I did to resolve this was to create a js script (without using truffle). By using ethers.js first I create a provider with the private key of the owner, then when I need to act as a brand I create a new provider with the private key of the brand. It works very nice. | |
Apr 12, 2020 at 0:59 | comment | added | Markus - soliditydeveloper.com |
You could expose multiple addresses with the truffle-hdwallet-provider like this: new HDWalletProvider(MNEMONIC, INFURA_KEY, 0, 2) and then use the second address from the mnemonic as brand address.
|
|
Apr 11, 2020 at 18:42 | comment | added | goodvibration | You need to unlock this address on the node that you're communicating with (which is not possible with Infura as far as I'm aware of). | |
Apr 11, 2020 at 18:12 | history | asked | Agilulfo | CC BY-SA 4.0 |