Skip to main content

Questions tagged [frontier]

Questions about the most popular Substrate EVM framework.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Need help in integrating staking to frontier! [closed]

I am trying to integrate pallet staking into latest frontier template. I am following this commit. Everything looks find excepts for the last part in runtime/src/lib.rs In the commit the person is ...
Vinay Kharayat's user avatar
0 votes
0 answers
10 views

Runtime Upgrade from standard Node Template to Frontier Template Node

I’m curious, is it possible to do a runtime upgrade that also adds EVM functionality? Currently my project has a solochain that is already public and we’d like to integrate EVM functionality/...
Christian Kessler's user avatar
1 vote
0 answers
50 views

error: System.ExtrinsicFailed: NoProvider when deploying smart contract

I just installed pallet-contracts on my Frontier node. From the Polkadot js app interface, I can send transactions with tokens without problems, but if I try to deploy a new smart contract (inside ...
Jacopo Mosconi's user avatar
0 votes
0 answers
58 views

Clarifications on Gas and Weight Measurement in Frontier Precompiles

I have included frontier in my runtime and I am trying to correctly measure the gas and weights of my precompiles. I have some questions about using the functions that frontier provides. What is the ...
magecnion's user avatar
  • 344
2 votes
1 answer
41 views

how to decode extrinsic data inside a pallet | Frontier

i have a pallet that prints extrinsic data (bytes and hex) of every extrinsic inside every block, how can i print it like an human readable object ("from", "to" ecc..)? that's my ...
Jacopo Mosconi's user avatar
0 votes
1 answer
29 views

How to make POS consensus using Frontier?

I have used https://github.com/polkadot-evm/frontier, compiled and started a node. Everything is working fine like transaction etc. But I want a POS consensus where user can stake amount to become a ...
Vinay Kharayat's user avatar
0 votes
0 answers
22 views

What is a minimal requirements for a Frontier Template based blockchain's network?

I'm trying to figure out what a minimal blockchain would look like using substrate's frontier node. What I'm trying to build: A public minimal blockchain network Aura consensus model EVM and Ethereum ...
tinnick's user avatar
  • 101
0 votes
0 answers
17 views

Frontier: Transaction would exhaust the block limits

I am testing a parachain with Frontier included: Frontier Parachain Template. But when I am trying to deploy a smart contract following the steps in the Substrate Documentation: Access EVM accounts, I ...
Alex Bean's user avatar
  • 5,757
0 votes
1 answer
44 views

How to Synchronize EVM and Substrate Balances in a Substrate Frontier Blockchain?

I am working on a Substrate-based blockchain using the Frontier template to achieve Ethereum compatibility. I am looking to synchronize the balance states between the EVM pallet and Substrate's native ...
Christian Kessler's user avatar
0 votes
0 answers
20 views

Gas Limit is over estimated for dex contract

i've been working with the dex smart contracts. Whenever i try to use the add liquidity function of the contract ,it has been calculating the gas limit of 1.3 billion in frontier1.1.0. In frontier v1....
Arunjot Singh's user avatar
1 vote
0 answers
13 views

How can I manage the issue of excessive gas estimation in MetaMask when deploying a dapp contract on my WASM+EVM chain and calling its functions?

i am trying to deploy a dapp contract on my WASM + EVM based substrate chain but while calling the contract functions it gives me high gas estimation, how can i handle this issue?
Arunjot Singh's user avatar
1 vote
1 answer
25 views

How to integrate Subxt with frontier?

I want the transaction to be happen through subxt on frontier node template. I'm getting this error in this process: Metadata error: The generated code is not compatible with the node How to solve ...
Deepak Chaudhary's user avatar
1 vote
0 answers
36 views

How to replace substrate address(H256) to Ethereum Address(H160)

I need to replace the substrate address(H256) in fresh substrate-node-template to Ethereum Address(H160). Is it possible? If yes, Is it mandatory to integrate frontier in the node-template? Do we have ...
Deepak Chaudhary's user avatar
0 votes
2 answers
39 views

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

A blockchain I am working on enabled Frontier recently but since EVM chains' native tokens got 18 decimals by default and the chain's native token decimals are set to 12 we need to do decimals ...
chexware's user avatar
  • 325
2 votes
0 answers
84 views

How should I add offchain worker(OCW) in frontier when using AccountId20?

In order to add an offchain worker with using AccountId20 as the runtime account type I did following things. add associated type type AuthorityId: AppCrypto<Self::Public, Self::Signature>; in ...
xiao liang's user avatar
1 vote
1 answer
40 views

How to query the number of EVM contracts in a chain

Is there an easy way to query how many EVM smart contracts has been deployed in a Substrate chain?
ChristianArg's user avatar
1 vote
0 answers
25 views

Setting Gas fees for substrate chain which has frontier integrated in it

I am deploying the default smart contract in remix ide to local substrate chain using Metamask to connect with the chain. The local chain uses frontier for EVM. But fees comes quite high. I want to ...
Rohitas_atr894's user avatar
3 votes
0 answers
133 views

Unable to fully utilize block capacity when performing load testing

I'm currently running load tests on my local parachain which includes Frontier integration for EVM compatibility. During these tests, I'm sending thousands of transactions via the RPC endpoint. ...
magecnion's user avatar
  • 344
1 vote
0 answers
27 views

Run benchmark fail test in pallet-evm

test_benchmarks fail Repo: https://github.com/paritytech/frontier Command: cargo t -p pallet-evm --features runtime-benchmarks Issue: failures: ---- benchmarking::benchmark_tests::test_benchmarks ...
CocDap's user avatar
  • 708
0 votes
0 answers
44 views

How to fix the gas limit using asset-erc20 precompile

When I transfer ERC in EVM with the classic method of deployed contract it set the gas limit correctly, however when I want to transfer using the precompile ( moonbeam one ) asset-erc20 ( from ...
Dubs's user avatar
  • 294
0 votes
1 answer
52 views

Can we use AccountId20 with babe and other pallets?

As frontier now integrate natively the AccountId20 type, I wonder if it is compatible with all other pallets like BABE, Staking, ... Is there a place where we can check it or do we know some ...
Dubs's user avatar
  • 294
0 votes
1 answer
41 views

Moonbeam Unified Accounts Implementation

Moonbeam implemented unified accounts to use H160 address type across all network is quit old, is there any codebase available to implement same with newly generated frontier node template or is it ...
Rehan's user avatar
  • 167
2 votes
2 answers
70 views

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

Suppose I start with a Frontier-based template node and want it to sync with a Geth full node, as if it was an Ethereum execution client. What are the minimal set of changes necessary to make this ...
afm's user avatar
  • 355
2 votes
1 answer
55 views

How to debug/solve this frontier integration issue?

I am currently in the process of integrating the frontier with the solo chain. Following the integration, when I attempted to deploy the contract using Remix, it appears to be stuck, with no ...
Ajit's user avatar
  • 827
1 vote
1 answer
36 views

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

I want to integrate the frontier with my existing substrate solo-chain. do we have any guide/resource to help in that? substrate version i am using polkadot-v1.0.0
Pankaj's user avatar
  • 2,021
0 votes
1 answer
65 views

Calling Precompiled Contracts from Other Contracts in EVM fails

I am in the process of working with a precompiled contract I created in my Frontier EVM. I encounter issues when attempting to call this precompiled contract from another contract. While direct calls ...
ALeSD's user avatar
  • 499
0 votes
1 answer
68 views

In pallet-evm why do we need `WithdrawOrigin`?

For pallet-evm there's a config item, actually two config items that I would put under the same category and that is CallOrigin and WithdrawOrigin : pallet_evm::Config { /// Allow the origin ...
Purple_Turtle's user avatar
1 vote
1 answer
60 views

Frontier & Substrate

Hello we are using frontier, and we would like to remove gas fees for all evm transactons, I tried many things, but didn't achieve.. I still need to pass gas when I sign and send a transaction : await ...
cibou's user avatar
  • 131
1 vote
1 answer
108 views

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

I've successfully integrated Frontier into my runtime and have accessed the funds from an account, Alice's, using its SS58 account. To achieve this, I truncated the public address to retrieve the H160 ...
ALeSD's user avatar
  • 499
3 votes
1 answer
112 views

How substrate / frontier convert address

We are using frontier with substrate to be able to deploy evm smart contract. When I create a transfer between two evm address and that the second one does not exist, the node create a new ss58 ...
cibou's user avatar
  • 131
3 votes
0 answers
51 views

Unified Accounts [closed]

We have followed the comets of moonBeam and implemented Unified Accounts. Now we're facing issues while adding session keys for aura, grandpa and I'm online. we're using this method for Aura and ...
BlockBird's user avatar
2 votes
1 answer
59 views

Duplicate lang item error (E0152) with sp_io crate when integrating Frontier pallets with Substrate

I'm trying to make my Substrate-based blockchain compatible with Solidity and MetaMask. I've cloned Substrate from the polkadot-v0.9.39 branch and am trying to integrate Frontier's Ethereum ...
Mr Coder's user avatar
  • 923
2 votes
1 answer
148 views

How to Integrate a Substrate Chain with MetaMask and Implement Specific Features?

I am currently working on a project that involves creating a Substrate chain and I have several questions related to this: Integration with MetaMask: I want to be able to connect my Substrate chain to ...
Mr Coder's user avatar
  • 923
-1 votes
2 answers
100 views

the trait bound `<RuntimeApi as ConstructRuntimeApi<sp_runtime::generic::Block<, OpaqueExtrinsic>>` is not satisfied

`the trait bound` `<RuntimeApi as ConstructRuntimeApi<sp_runtime::generic::Block<sp_runtime::generic::Header<u32, BlakeTwo256>, OpaqueExtrinsic>, sc_service::client::client::Client&...
Arunjot Singh's user avatar
0 votes
1 answer
71 views

frontier template upgrade to polkadotv0.9.38 but using Babe instead of Aura

I've upgraded the frontier-node-template to substrate polkadot-v0.9.38, I've fixed all issues in runtime, migrated my code as well. But since last few days, I'm stuck in converting service.rs file in ...
Zubair Buriro's user avatar
2 votes
0 answers
60 views

Frontier: What is trait LinearCostPrecompile about?

So it's often seen in Precompile implementations as a trait bound : impl<T: LinearCostPrecompile> Precompile for T { and the trait itself : pub trait LinearCostPrecompile { const BASE: u64; ...
Purple_Turtle's user avatar
1 vote
1 answer
71 views

Frontier template using sr25519 - polkajsapi

I just cloned frontier and modified the code for using H256 address following this These are my changes in runtime/src/lib.rs: pub type Signature = MultiSignature; impl pallet_evm::Config for Runtime ...
Huy Duan Tran's user avatar
1 vote
0 answers
88 views

how withdraw astar frontier tip reward with alice in dev mode, i use evm.withdraw(0x15fdd31c61141abd04a99fd6822c8558854ccde3, 1) report "bad Origin"

[] https://github.com/AstarNetwork/Astar.git ./target/release/astar-collator --dev -d ./data -l info astar frontier evm use HashedAddressMapping in evm pallet alice public key is ...
Smith's user avatar
  • 141
5 votes
1 answer
168 views

PolkadotJS Apps shows wrong AccountId20 on Frontier Template Node

Frontier recently received support for Moonbeam's AccountId20: https://github.com/paritytech/frontier/pull/1019 So now I'm trying to use this new feature on PolkadotJS Apps. I'm running a Frontier ...
Bernardo Rodrigues's user avatar
1 vote
1 answer
113 views

Generating ethereum address from SS58 address [duplicate]

I have created keypairs for aura and grandpa and added it into customSpec file but i need to add ethereum address in customSpec file to fund it with some amount of ethereum. So, i have generated ...
neeraj's user avatar
  • 41
2 votes
1 answer
105 views

Derived H160 address is different than showing in metamask?

I know ss58 public key and private key, also I have derived the EVM HS160 account from the same public key, next is how I can import that EVM HS160 Account in metamask. If I put the private key of ...
neeraj's user avatar
  • 41
2 votes
1 answer
63 views

PreLog Blocks in frontier ethereum pallet on_initialize hook

fn on_initialize(_: T::BlockNumber) -> Weight { let mut weight = T::SystemWeightInfo::kill_storage(1); // If the digest contain an existing ethereum block(encoded as PreLog)...
Timothée Delabrouille's user avatar
1 vote
1 answer
207 views

How do I use the AccountId20 and EthereumSignature Signer with polkadot.js.org? [duplicate]

I'm trying to get a better understanding of Frontier, and thus I'm reimplementing the frontier node template over the generic substrate node template. Unfortunately I'm pretty much stuck at step 1. ...
Farcaller's user avatar
  • 158
1 vote
0 answers
19 views

subscan-essentials EVM plugin

I've tested subscan-essentials and love how nicely a substrate-based chain gets indexed in a database. But I see that it doesn't parse Frontier evm extrinsics. I couldn't find open-source plugins for ...
lucgerrits's user avatar
1 vote
1 answer
62 views

How to implement the `Get` trait for a `Pallet<T>`?

I'm writing a pallet that implements evm::executor::stack::PrecompileSet. The goal is to use this pallet in conjunction with Frontier's pallet-evm, which has the following types in its Config trait: ...
Bernardo Rodrigues's user avatar
1 vote
2 answers
106 views

frontier node template fees

I created a new frontier node template with frontier. During each interaction I pay a gas fee, my question is where this gas fee is deposited and can it be collected by the validator ?
user3941's user avatar
1 vote
0 answers
76 views

Change chainID in frontier after chain is live

We have tested in local chain with a runtime upgrade to change the chainID of the EVM (with frontier). All seems ok, chain continue to run correctly with the new chainID. Except the fact that we will ...
Dubs's user avatar
  • 294
1 vote
1 answer
93 views

Moonbeam #[precompile] procedural macro and Rust generics compilation error

I'm trying to write something similar to Moonbeam's assets-erc20 precompile. I'm using Moonbeam's #[precompile] procedural macros. pub type AssetIdOf<R> = <<R as pallet_evm::Config&...
Bernardo Rodrigues's user avatar
0 votes
0 answers
28 views

What is the account code in genesis account?

What does account code use for? No idea why are 0xff (INVALID) and 0x00 (STOP)... https://github.com/paritytech/frontier/blob/08dfe8986e3f92ce213244c438eb9178653fce59/primitives/evm/src/lib.rs#L87 ...
wcl's user avatar
  • 41
4 votes
1 answer
157 views

Is there any way to access the accountid inside the offchain worker?

I am coding a pallet in which I need to know who I am inside a offchain worker to check if I should send a transaction or not. Right now I have access to the account in the send_signed_transaction ...
Gabriel Martinez's user avatar