Auto-generate accounts.csv #25

Merged
telackey merged 2 commits from telackey/fixturenet into main 2022-10-14 21:58:47 +00:00
Showing only changes of commit ca499f7c8d - Show all commits

View File

@ -12,9 +12,6 @@ if len(sys.argv) > 1:
with open(testnet_config_path) as stream:
data = yaml.safe_load(stream)
out = {}
# Some hardcoded addrs
for key, value in data['eth1_premine'].items():
acct = w3.eth.account.from_mnemonic(data['mnemonic'], account_path=key, passphrase='')
print("%s,%s,%s" % (key, acct.address, acct.key.hex()))