Skip to content

Contract "import failed" on BSC/BSC Testnet fork #104

Description

@a4dyn

Abstract
I was trying to use blacksmith to test contracts on BSC/BSC Testnet fork. But when I tried to import contracts on blacksmith's local website it shows "import failed", tested several times, both BSC/BSC Testnet won't work.

What I did

  1. Following the instruction, I cloned blacksmith and run it with yarn dev
  2. Then I forked the BSC mainnet via anvil, using anvil --fork-url https://bsc-dataseed1.binance.org/. The network was forked successfully and wallets are generated. I also saw the "Chain 56" instruction at the blacksmith web (http://localhost:3000/)
  3. I found a random contract on bscscan.com, let's say PancakeSwap MasterChef (0x73feaa1ee314f8c655e354234017be2193c9e24e), when I tried to import it in the via "Contact Management" in blacksmith, it shows "Import Failed".
  4. I tried with ETH network and it works fine. So I guess there's some configuration wrong with networks outside of ETH?

Screenshots
Initial State:
image
image

After I tried to import a contract via blacksmith:
image
image

System (please complete the following information):

  • Browser: Chrome
  • Blacksmith Short SHA: f23b2dd
  • Anvil Version: anvil 0.1.0 (2ff9902 2023-01-11T00:22:04.738793Z)
  • Forge Version: forge 0.2.0 (2ff9902 2023-01-11T00:22:04.500579Z)

Additional context
Please let me know if there is any way to fix it. I am happy to learn and help. Thanks.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions