You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vbaranov Hey! I want to add precompile contract code to blockscout.
I have chain, that implement Cosmos core logic and Geth EVM. (e.x. EVMOS). There is deployed precompile contract to address
0x1559000000000000000000000000000000000001 in Cosmos.
EXTCODESIZE == 0, and this contract hasn't deploy transaction emitted to EVM part.
How can I add contract source code manually ?
If I try to INSERT it to smart_contracts table I receive ERROR: insert or update on table "smart_contracts" violates foreign key constraint "smart_contracts_address_hash_fkey"
But I have address 0x1559000000000000000000000000000000000001 in addresses table
What is the best practice of it ?
The text was updated successfully, but these errors were encountered:
I think the best way to do this is to pass path to your genesis/chain spec via CHAIN_SPEC_PATH env
But, if this is not applicable to you by any reason, you need to insert contract bytecode to contract_code column in addresses table
Describe your issue here.
Environment
elixir -version
): latestnode -v
):@vbaranov Hey! I want to add precompile contract code to blockscout.
I have chain, that implement Cosmos core logic and Geth EVM. (e.x. EVMOS). There is deployed precompile contract to address
0x1559000000000000000000000000000000000001 in Cosmos.
EXTCODESIZE == 0, and this contract hasn't deploy transaction emitted to EVM part.
How can I add contract source code manually ?
If I try to INSERT it to smart_contracts table I receive ERROR: insert or update on table "smart_contracts" violates foreign key constraint "smart_contracts_address_hash_fkey"
But I have address 0x1559000000000000000000000000000000000001 in addresses table
What is the best practice of it ?
The text was updated successfully, but these errors were encountered: