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
28 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 ...
0 votes
0 answers
18 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 create a new smart contract (developer/...
2 votes
0 answers
28 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 ...
0 votes
0 answers
11 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 ...
0 votes
1 answer
38 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 ...
0 votes
0 answers
21 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 ...
0 votes
0 answers
16 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 ...
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 ...
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....
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?
1 vote
0 answers
34 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 ...
8 votes
3 answers
775 views

How to bind an Ethereum H160 address with a Substrate H256 address?

I'm trying to bind a H160 address with a H256 address, if we assume this function: fn bind(origin: OriginFor<T>, address: H160 , signature: [u8; 130]) -> Result<(), Error<T>>{ ...
0 votes
2 answers
38 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 ...
1 vote
1 answer
72 views

Frontier node template fails to build

I've just checked out the latest frontier version from master branch (28c4bce). When I'm trying to run ./node-template-release.sh I'm getting the following error. How to fix this? Compiling pallet-...
1 vote
1 answer
74 views

Update ERC-20 Storage slot from Substrate

I'm trying to make a PoC (using frontier template) where I should update the balance of an EVM ERC-20. I guess that the steps should be as follows: Calculate the storage slot like this tool does: ...
0 votes
1 answer
63 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 ...
1 vote
1 answer
69 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 ...
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 ...
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?
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 ...
3 votes
0 answers
132 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. ...
0 votes
1 answer
40 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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
4 votes
1 answer
171 views

Frontier-node-template compilation error on Windows

I am trying to run the frontier-node-template:https://github.com/substrate-developer-hub/frontier-node-template/ But it gives an error as shown below. I tried to change the rustup default nightly-...
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
0 votes
1 answer
63 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 ...
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; ...
0 votes
1 answer
66 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 ...
2 votes
1 answer
176 views

How to make gasless(EVM balance) transaction in Frontier EVM for certain Ethereum smart contract functions?

How is gasPrice determined in Frontier EVM? I found the following settings in the Frontier/template/src/runtime/lib.rs impl pallet_evm::Config for Runtime { type FeeCalculator = BaseFee; type ...
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 ...
1 vote
1 answer
101 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 ...
3 votes
1 answer
77 views

How does 'into_account_id' function of pallet_evm works?

I'm working with pallet_evm of Frontier to support EVM, I want to map the Substrate account with the EVM account #[pallet::storage] pub type Mapping<T: Config> = StorageMap<_, ...
-1 votes
2 answers
99 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&...
3 votes
1 answer
109 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 ...
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 ...
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 ...
2 votes
1 answer
147 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 ...
5 votes
1 answer
166 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 ...
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 ...
1 vote
1 answer
111 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 ...
2 votes
1 answer
102 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 ...
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)...
4 votes
1 answer
156 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 ...
0 votes
1 answer
91 views

cannot find function `memory_teardown` in module `sandbox`

I am trying to add evm_pallet with NPOS consensus( i.e babe and staking) but while adding evm_pallet to runtime getting error.. active toolchain 1.59-x86_64-unknown-linux-gnu (default) rustc 1.59.0 (...
1 vote
1 answer
204 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. ...
0 votes
1 answer
93 views

Building precompile mock results in error[E0277]: the trait bound `currencies::MultiCurrencyPrecompile<TestRuntime>: Precompile` is not satisfied

I am currently implementing a mock for our EVM precompiles but ran into the following error when building the tests error[E0277]: the trait bound `currencies::MultiCurrencyPrecompile<...