Module: ERC20::Checks
- Included in:
- FakeWallet, Wallet
- Defined in:
- lib/erc20/checks.rb
Overview
The checks that every wallet makes before it touches the network.
A wallet deals with private keys, public addresses, and amounts of money. A
broken one of them either costs money or silently loses it, thus it is
rejected the moment it arrives. Both ERC20::Wallet and ERC20::FakeWallet
make these very checks, so that a test that passes against the fake wallet
doesn't fail against a real provider.
- Author
Yegor Bugayenko (yegor256@gmail.com)
- Copyright
Copyright (c) 2025 Yegor Bugayenko
- License
MIT