Questions tagged [frontier]

Questions about the most popular Substrate EVM framework.

Filter by
Sorted by
Tagged with
1 vote
0 answers
8 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
0 votes
1 answer
21 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
63 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
  • 101
5 votes
1 answer
67 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
33 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
26 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
1 vote
1 answer
16 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
0 votes
1 answer
44 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
  • 118
1 vote
0 answers
11 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
56 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
59 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
41 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
  • 284
1 vote
1 answer
59 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
23 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
  • 1
4 votes
1 answer
77 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
0 votes
1 answer
38 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: ...
dbp's user avatar
  • 1
1 vote
0 answers
40 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 ...
chexware's user avatar
  • 111
3 votes
2 answers
89 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 ...
Amit Kumar Yadav's user avatar
2 votes
4 answers
210 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'...
Alex Bean's user avatar
  • 3,427
0 votes
1 answer
36 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 ...
Alex Bean's user avatar
  • 3,427
2 votes
1 answer
98 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 ...
Olivier Hory's user avatar
2 votes
1 answer
58 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 '{&...
Oleg Kalenik's user avatar
2 votes
1 answer
60 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 ...
Discardo's user avatar
  • 137
0 votes
0 answers
63 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 ...
Muhammad Talha Dar's user avatar
0 votes
1 answer
39 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
Henry Newling's user avatar
1 vote
1 answer
50 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 ...
Adam Wierzbicki's user avatar
7 votes
1 answer
65 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 ...
Amit Kumar Yadav's user avatar
0 votes
1 answer
13 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 ...
Russo's user avatar
  • 1,033
6 votes
1 answer
76 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 (...
Amit Kumar Yadav's user avatar
0 votes
0 answers
27 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 └...
Russo's user avatar
  • 1,033
3 votes
2 answers
146 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 ...
Russo's user avatar
  • 1,033
1 vote
1 answer
118 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 ...
Russo's user avatar
  • 1,033
1 vote
1 answer
62 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:...
Russo's user avatar
  • 1,033
0 votes
1 answer
49 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<...
chexware's user avatar
  • 111
0 votes
1 answer
28 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` ...
katapulte's user avatar
  • 131
1 vote
0 answers
229 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, ...
Russo's user avatar
  • 1,033
0 votes
2 answers
71 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 ...
katapulte's user avatar
  • 131
0 votes
2 answers
69 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....
katapulte's user avatar
  • 131
0 votes
1 answer
85 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/...
Russo's user avatar
  • 1,033
0 votes
1 answer
49 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 = ...
Russo's user avatar
  • 1,033
0 votes
1 answer
15 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) ...
Russo's user avatar
  • 1,033
2 votes
3 answers
499 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) ...
Russo's user avatar
  • 1,033
0 votes
1 answer
29 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 = ...
Russo's user avatar
  • 1,033
0 votes
1 answer
33 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 ...
Russo's user avatar
  • 1,033
1 vote
1 answer
170 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: ...
Russo's user avatar
  • 1,033
1 vote
2 answers
107 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 ...
Russo's user avatar
  • 1,033
1 vote
1 answer
104 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....
Russo's user avatar
  • 1,033
2 votes
1 answer
102 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 ...
Russo's user avatar
  • 1,033
0 votes
1 answer
66 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, ...
Russo's user avatar
  • 1,033
2 votes
1 answer
95 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. ...
Russo's user avatar
  • 1,033