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
We should pull accounts in tests starting with index 1 instead of 0.
The 0 is usually a deployer. Using the same account as different roles in tests may cause some false-positive test results.
What would be even better we should use getUnnamedAccounts from hardhat to pull the accounts, so they don't overlap with the named accounts defined in the hardhat config. Please see example.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We should pull accounts in tests starting with index
1
instead of0
.The
0
is usually a deployer. Using the same account as different roles in tests may cause some false-positive test results.What would be even better we should use
getUnnamedAccounts
fromhardhat
to pull the accounts, so they don't overlap with the named accounts defined in the hardhat config. Please see example.Originated in: #33 (comment)
Beta Was this translation helpful? Give feedback.
All reactions