ApeWorX / ape

The smart contract development tool for Pythonistas, Data Scientists, and Security Professionals
https://apeworx.io
Apache License 2.0
876 stars 133 forks source link

Testing: Automatically fund personal accounts when using test networks #264

Open antazoey opened 2 years ago

antazoey commented 2 years ago

Overview

When using a development network provider, automatically fund all accounts from the ape-accounts plugin.

Specification

Can use accounts.load("dev") in a local network.

fubuloubu commented 2 years ago

only do this when launching a script or console process (not testing)

antazoey commented 1 year ago

This can be done using the TestAccountAPI.set_balance API method, thought it would be nice to have this first: https://github.com/ethereum/eth-tester/issues/236

antazoey commented 1 year ago

Although, perhaps unlock_account in EthTester may work!

antazoey commented 2 months ago

blocked by https://github.com/ApeWorX/ape/pull/2173