You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
console.log(accounts)
just print me string ganache
Expected Behavior
migration successful, or at least console.log should return me Promise of accounts array
(the same way as I would invoke web3.eth.getAccounts() )
I also should note, that when I'm invoking web3.eth.getAccounts() manually - it works fine, but when I'm trying to get accounts from module.exports it returns me that ganache string and nothing else
Current Behavior
accounts contain simple string ganache and nothing else
Possible Solution
Check out accounts from module.exports or check out ganache accounts accesability.
Your Environment
Truffle v.5.1.12
The text was updated successfully, but these errors were encountered:
Yep! I'll update this issue accordingly! Thanks @JackBekket
gnidan
changed the title
Invalid address in deployment procees (bug with ganache accounts)
Update docs to be more clear about deployer function arguments
Mar 4, 2020
I'm trying to deploy contracts to ganache, using
truffle migrate
. One of my contracts requiring to get accounts addresses as constructor parameterWhen I try to use
and trying deploy like this:
it falis with invalid address.
console.log(accounts)
just print me string
ganache
Expected Behavior
migration successful, or at least
console.log
should return me Promise of accounts array(the same way as I would invoke
web3.eth.getAccounts()
)I also should note, that when I'm invoking web3.eth.getAccounts() manually - it works fine, but when I'm trying to get accounts from
module.exports
it returns me thatganache
string and nothing elseCurrent Behavior
accounts contain simple string
ganache
and nothing elsePossible Solution
Check out accounts from module.exports or check out ganache accounts accesability.
Your Environment
Truffle v.5.1.12
The text was updated successfully, but these errors were encountered: