Skip to main content
2 votes

Frontier & Substrate

Try setting these in your runtime's lib.rs: parameter_types! { pub DefaultBaseFeePerGas: U256 = U256::zero(); pub DefaultElasticity: Permill = Permill::zero(); } pub struct BaseFeeThreshold; ...
Artur Gontijo's user avatar
2 votes

Transferring Funds from SS58 Account to H160 Account Using Frontier and Metamask

I'm assuming you are using the Frontier's polkadot-v0.9.39, so there is no AccountId20 there yet, right? You can use PolkadotJS UI to send an evm.call() extrinsic, like: Encoded call data: ...
Artur Gontijo's user avatar
2 votes

How substrate / frontier convert address

You can calculated it with this tool: Substrate EVM Utilities. An example with a random account generated: Secret phrase: worth wrestle meat ecology merry ginger online glad soda usage peasant ...
Alex Bean's user avatar
  • 5,747
2 votes

Is it possible to turn a Frontier node into an Ethereum client?

Not a comprehensive answer, but I do not think this is trivial. The first and most obvious issue to me would be networking support, as ETH uses devp2p and Substrate / Frontier uses libp2p.
Shawn Tabrizi's user avatar
  • 16.1k
1 vote

How to integrate Subxt with frontier?

subxt has added an example how to talk to it with frontier/moonbeam here
Niklas Adolfsson's user avatar
1 vote

Is it it possible to change native token decimals of chain that is already running?

Previous answer is correct, but some additions: You can technically avoid an upgrade and not touch any onchain state. Imagine, previously 1 UNIT was 10^12. Now it is 10^10. But this is a "new ...
kianenigma's user avatar
  • 2,799
1 vote

Is it it possible to change native token decimals of chain that is already running?

decimals is not part of the genesis state, so you wouldn't need to reset the chain. Just set properties.tokenDecimals to 18 in the genesis chain spec of your chain: { "name": "...
dastansam's user avatar
  • 576
1 vote
Accepted

How to query the number of EVM contracts in a chain

One way is by querying chain state for all entries of EVM::AccountCodes or EVM::AccountCodesMetadata storages and counting them. For each deployed contract, its code is stored in AccountCodes. Keep in ...
dastansam's user avatar
  • 576
1 vote

Can we use AccountId20 with babe and other pallets?

Yes, you can use it with most pallets we already did this. And I suggest you ask for some more specific question. A note here, BABE, GRANDPA and ImOnline use keystore on node side the session keys are ...
AurevoirXavier's user avatar
  • 10.6k
1 vote
Accepted

How to debug/solve this frontier integration issue?

You should have these lines in services.rs: let FrontierPartialComponents { filter_pool, fee_history_cache, fee_history_cache_limit, } = new_frontier_partial(&...
Deepak Chaudhary's user avatar
1 vote

do we have any updated guide to integrate the frontier to the substrate solo-chain?

Take a look into this repository: Frontier Parachain Template is a ready-to-use EVM-based parachain. You can use specifically this commit to see the changes needed to add the Frontier integration.
Alex Bean's user avatar
  • 5,747
1 vote
Accepted

Calling Precompiled Contracts from Other Contracts in EVM fails

You don't need to deploy the 'correct' code in any sense. You just need to deploy any dummy bytecode. The bytecode will never actually be executed. Instead your precompile Rust code will be executed. ...
JoshOrndorff's user avatar
  • 1,201

Only top scored, non community-wiki answers of a minimum length are eligible