Questions tagged [frontier]

Questions about the most popular Substrate EVM framework.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 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
44 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
32 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 ?
0 votes
0 answers
29 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 ...
  • 252
0 votes
1 answer
56 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
22 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 ...
  • 1
1 vote
0 answers
24 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
36 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
1 vote
0 answers
27 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 ...
2 votes
2 answers
74 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
137 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'...
  • 2,664
0 votes
1 answer
32 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 ...
  • 2,664
2 votes
1 answer
87 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 ...
1 vote
1 answer
45 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
51 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
56 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
34 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
1 vote
1 answer
47 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 ...
6 votes
1 answer
49 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
10 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 ...
  • 921
6 votes
1 answer
67 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
1 answer
24 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 └...
  • 921
3 votes
2 answers
124 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 ...
  • 921
1 vote
1 answer
110 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 ...
  • 921
1 vote
1 answer
57 views

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

And I learned about how to wrap a pallet to make a precompile for Ethereum users to call those pallet functions ... see the video at https://www.youtube.com/watch?v=V9KfvhoqLJ4&t=1004s (time = 01:...
  • 921
0 votes
0 answers
35 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<...
0 votes
1 answer
27 views

Unable to author block in slot 270671004,. `can_author_with` returned: `spec_name` does not match

I have changed the name on my spec.json and I am getting this erro Unable to author block in slot 270671004,. `can_author_with` returned: `spec_name` does not match `X` vs `node-frontier-template` ...
  • 111
0 votes
0 answers
185 views

Zombienet: wasm trap: wasm `unreachable` instruction executed

I was trying to deploy Ethereum smart contracts to my parachain as part of a Zombienet test... After deploying a bunch of contracts including demo, BoxU, ERC1820, ERC20, ERC721, ERC1155, ERC777, ...
  • 921
0 votes
2 answers
62 views

Is it possible to run moonbeam/Astar as a standalone network

I am exploring moonbeam and astar projects. I would like to know if it is possible to run a standalone network without collators or relaychain. I am interested in running a standalone network of one ...
  • 111
0 votes
2 answers
62 views

Frontier template

I would like to build a frontier based node. However I am confused about what to start with should I generate my template using the script ./node-template-release.sh as mentioned in https://github....
  • 111
0 votes
1 answer
73 views

How to add Frontier code as a dependency to substrate-parachain-template based parachain?

Hi I was trying to add Frontier code to my substrate-parachain-template project. I was following JoshOrndorff's tutorial and his commits here https://github.com/PureStake/substrate-node-template/...
  • 921
0 votes
1 answer
39 views

the trait bound `Event: From<pallet_base_fee::Event>` is not satisfied

I was trying to add Frontier template into my substrate-parachain-template project... when I added this code below in runtime/src/lib.rs: impl pallet_base_fee::Config for Runtime { type Event = ...
  • 921
0 votes
1 answer
14 views

How to set FeeCalculator value to use BaseFee or FixedGasPrice in pallet_evm config?

I was trying to add Frontier into my parachain as a dependency... then I got this error Compiling parachain-template-runtime v0.1.0 (/mnt/sda3/polkadot/substrate-parachain-template-evm/runtime) ...
  • 921
1 vote
3 answers
386 views

cannot find macro `vec` in this scope

I am trying to add Frontier as a dependency in my substrate-parachain-template. Compiling sp-npos-elections v4.0.0-dev (https://github.com/paritytech/substrate?branch=polkadot-v0.9.25#3348e144) ...
  • 921
0 votes
1 answer
28 views

trait `parity_util_mem::malloc_size::MallocSizeOf` is not implemented for `unchecked_extrinsic::UncheckedExtrinsic<Address, Call, Signature, Extra>`

I was trying adding Frontier as a dependency to my parachain project... After fixing a few errors and adding UncheckedExtrinsic & CheckedExtrinsic: pub type UncheckedExtrinsic = ...
  • 921
0 votes
1 answer
32 views

error: failed to select a version for `parity-db`

I was trying to add Frontier as a dependency of my parachain(Substrate Cumulus based) project... $ cargo build -r Updating git repository `https://github.com/PNetwork/frontier` Updating ...
  • 921
1 vote
1 answer
142 views

submit transaction to pool failed: Pool(TemporarilyBanned)

When I tried to deploy an Ethereum smart contract to my parachain's Frontier EVM, I got this error: running deployment script... owner: 0x6Be02d1d3665660d22FF9624b7BE0551ee1Ac91b user1: ...
  • 921
1 vote
2 answers
94 views

deploy solidity ethereum to parachain with ExhaustsResources error

I can deploy a few Ethereum smart contracts into my parachain via Hardhat. But those are only normal contracts. All the upgradeable contracts and ERC777 contract cannot be deployed with the ...
  • 921
1 vote
1 answer
89 views

ProviderError: submit transaction to pool failed: Pool(InvalidTransaction(InvalidTransaction::Payment))

Hi I am trying to use Hardhat to deploy Ethereum smart contracts to my parachain with Frontier EVM inside. The Hardhat uses my own Typescript file to deploy contracts like this one: https://hardhat....
  • 921
2 votes
1 answer
96 views

How to make a parachain project that uses Frontier as a dependency?

I have a parachain project that uses Frontier as a dependency with a specific Substrate version(polkadot-v0.9.24), but the Ethereum RPC does not work. So I need to find the bug there... Also I am ...
  • 921
0 votes
1 answer
61 views

How to make a Frontier demo for running Ethereum smart contracts?

Inside the Frontier repo, I found this template folder: https://github.com/paritytech/frontier/tree/master/template and its Readme says: This template is maintained in the Frontier project repository, ...
  • 921
2 votes
1 answer
91 views

How to upgrade Frontier to use a specific Substrate version

The Substrate team(https://github.com/paritytech/substrate/) produces releases like polkadot-v0.9.25 every a few weeks, and my team needs to upgrade our parachain to follow those Substrate versions. ...
  • 921
1 vote
1 answer
63 views

eth_getLogs is returning empty array on Astar

With recent updates in frontier eth_getLogs is returning empty array curl -X POST --data '{"id": 1, "jsonrpc":"2.0","method": "eth_getLogs","...
1 vote
0 answers
37 views

Failed to resolve dependencies with pallet-staking in frontier

i am trying to implement n-POS in my frontier and i had to use pallet-staking for that. but when i try to use this dependency in my cargo.TOML file it start giving me error related to frame-...
0 votes
0 answers
29 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-...
0 votes
2 answers
48 views

Pallet declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `StorageVersion(0)`

After a runtime upgrade on Frontier, these warnings are logged: In this case, the pallets are related to Frontier only, but that seems possible for any FRAME pallets. Does anything need to be done ...
  • 165
1 vote
1 answer
45 views

unresolved import sc_rpc::Metadata

i try to import fc-rpc on fronter. but got some error message Compiling fc-rpc v2.0.0-dev (https://github.com/paritytech/frontier.git#9d4ccba8) error[E0432]: unresolved import `sc_rpc::Metadata` --&...
  • 111
1 vote
2 answers
104 views

How do I know if I will need a storage migration along a forkless upgrade?

I have a blockchain running a version of Frontier from september 2021, and want to upgrade it to the latest commits. I'm prepared to do a forkless upgrade, but who do I know if I will need storage ...
  • 165
2 votes
2 answers
82 views

Ethereum chain as a Substrate chain

Is it technically possible to upgrade Ethereum to be Substrate compatible blockchain? I understand there is likely to be strong resistance toward such idea in ETH community but I am interested only ...
1 vote
1 answer
119 views

Enabling the std feature on environmental crate

I'm trying to use the environmental crate (link: https://docs.rs/environmental/1.1.3/src/environmental/lib.rs.html#64) to work with EVM and ethereum transactions. But it seems like adding either ...
  • 171