feat: support blockscout in cast etherscan-source
#4776
Labels
A-compatibility
Area: compatibility
A-config
Area: config
C-cast
Command: cast
P-low
Priority: low
T-feature
Type: feature
Milestone
Component
Cast
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (f7a535d 2023-04-03T00:04:12.007857053Z)
What command(s) is the bug in?
cast etherscan-source
Operating System
Linux
Describe the bug
As i understand https://github.com/gakonst/ethers-rs/blob/master/ethers-etherscan/src/contract.rs#L378 does a simple get call to a "etherscan like api".
Blockscout seems to follow that exact api:
So i think the command should probably be agnostic e.g.
cast source
and support a--api-url
parameter or source the api from toml (not sure how reasonable this is as technically it's notetherscan
?The text was updated successfully, but these errors were encountered: