Questions tagged [frontier]
Questions about the most popular Substrate EVM framework.
87
questions
3
votes
0
answers
127
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. ...
1
vote
0
answers
20
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
35
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
26
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 ...
0
votes
1
answer
16
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 ...
2
votes
2
answers
55
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 ...
2
votes
1
answer
41
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 ...
1
vote
1
answer
25
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
45
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 ...
0
votes
1
answer
48
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 ...
1
vote
1
answer
43
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
61
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 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
37
views
Unified Accounts
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
53
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
66
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 ...
-1
votes
2
answers
77
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&...
0
votes
1
answer
39
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 ...
2
votes
0
answers
45
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;
...
1
vote
1
answer
53
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 ...
1
vote
0
answers
85
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 ...
5
votes
1
answer
114
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
1
answer
62
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
71
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
51
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)...
1
vote
1
answer
103
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.
...
1
vote
0
answers
15
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 ...
1
vote
1
answer
60
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:
...
1
vote
2
answers
88
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 ?
1
vote
0
answers
60
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 ...
1
vote
1
answer
84
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&...
0
votes
0
answers
27
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
...
4
votes
1
answer
125
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 ...
1
vote
1
answer
52
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: ...
1
vote
0
answers
64
views
EVM precompile actions always returns error code -32603 when called
We have started implementing a precompile for our NFT pallet but when I try testing it locally using Remix IDE when calling all of its actions I always get the following message:
Internal JSON-RPC ...
0
votes
2
answers
127
views
How to change evm token decimals?
native token of my chain has 12 decimals,now i have integrated EVM functionality into my chain, is there any way by which i can change evm decimals from 18 to 12 as i don't want to change my native ...
2
votes
4
answers
489
views
Private key for EVM Frontier
I am running the Frontier-Node-Template and using the library Web3JS to generate EVM transactions following the Moonbeam guide.
const Web3 = require('web3');
const web3 = new Web3('ws://127.0.0.1:9944'...
0
votes
1
answer
53
views
Error building frontier-node-template
I am trying to build the Frontier Node Template from this code or from the Frontier repository.
But when running the cargo build --release I am getting the following error:
error: non-defining opaque ...
3
votes
1
answer
120
views
Getting `insufficient funds for gas * price + value` error when performing transaction with another account than Alice
I'd like to use Substrate Frontier as a private blockchain for my current project. I have set up a project using a frontier-template-node build and I am now trying to adjust its settings.
I am ...
2
votes
1
answer
80
views
Frontier EVM integration: UnknownTransaction::NoUnsignedValidator error occurs while transferring funds via Metamask
I'm integrating Frontier EVM into my Substrate chain and facing the following issue while trying to send some funds between accounts via metamask:
[ethjs-query] while formatting outputs from RPC '{&...
2
votes
1
answer
118
views
Explorer for Substrate-based EVM chains
I've built an EVM-compatible blockchain using Substrate and connected it with Metamask and PolkadotJs explorer. But I want a more user-friendly explorer that users with a non-technical background can ...
0
votes
0
answers
76
views
build NPOS EVM commpatible chain
What's the best project setup to build an NPoS and EVM Compatible chain at this moment?
Which version/branch of polkadot release to use? such as polkadot-v0.9.22 or polkadot-v0.9.18?
Use ORML or ...
0
votes
1
answer
58
views
What is the maximum contract size limit for frontier EVM smart contract?
Does the contract limit size information shown in the link below holds true for Frontier EVM also?
https://ethereum.org/en/developers/docs/smart-contracts/#limitations
2
votes
1
answer
79
views
Can an off-chain worker read/write the state of an EVM contract?
Let's assume we have a frontier-based node with smart contract X. From an off-chain worker, we want to call X.some_method() which will return data, and then the worker would use this data to make some ...
1
vote
1
answer
103
views
getting Error's while adding pallet_evm to runtime " the trait bound `pallet_evm::Pallet<Runtime>: Callable<Runtime>` is not satisfied in `Call`"
I am trying to add Evm pallet to my substrate runtime i am using Polkadotv0.9.25 for both substrate and frontier but getting error of trait bound for almost every pallet.
error:- within Call, the ...
0
votes
1
answer
29
views
Precompile error.. main runtime: panicked at 'Digest item must match that calculated,'
I was adding a new precompile function to my parachain,
then when I ran my parachain and invoked one of the precompile functions, I got this error from one of the polkadot validators:
Relaychain ...
0
votes
1
answer
90
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 (...
0
votes
0
answers
32
views
duplicate lang item in crate std (which ansi_term depends on): panic_impl - Cannot use dependency
I was trying to use this ansi_term dependency in my project/precompiles/utils/src/lib.rs.
Here is my file structure:
my_parachain/
├── ...
└──precompiles/utils
├── macro
├── src/lib.rs
└...
3
votes
2
answers
256
views
Frontier: How to change EVM gas fee charged in calling precompile functions
Regarding the EVM gas fee used for calling precompile functions, how can I set that fee to zero so that the MetaMask will show zero fee at invoking those precompile functions?
I saw a demonstration of ...
2
votes
1
answer
159
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 ...