Questions tagged [frontier]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 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/...
user avatar
  • 627
0 votes
1 answer
13 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 = ...
user avatar
  • 627
0 votes
1 answer
10 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) ...
user avatar
  • 627
0 votes
3 answers
35 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) ...
user avatar
  • 627
0 votes
1 answer
12 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 = ...
user avatar
  • 627
0 votes
1 answer
19 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 ...
user avatar
  • 627
1 vote
0 answers
28 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: ...
user avatar
  • 627
0 votes
1 answer
26 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 ...
user avatar
  • 627
0 votes
1 answer
24 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....
user avatar
  • 627
1 vote
1 answer
42 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 ...
user avatar
  • 627
0 votes
1 answer
33 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, ...
user avatar
  • 627
1 vote
1 answer
27 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. ...
user avatar
  • 627
1 vote
1 answer
48 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","...
user avatar
1 vote
0 answers
26 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-...
user avatar
0 votes
0 answers
19 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-...
user avatar
0 votes
2 answers
34 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 ...
user avatar
  • 161
1 vote
1 answer
36 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` --&...
user avatar
  • 111
1 vote
2 answers
80 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 ...
user avatar
  • 161
2 votes
2 answers
54 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 ...
user avatar
0 votes
1 answer
38 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 ...
user avatar
  • 101
1 vote
1 answer
39 views

no function or associated item named `set_block_number` found for struct `frame_system::Pallet` in the current scope

I have updated rust version. when i try to build the frontier template i am getting the below error: * error[E0599]: no function or associated item named `set_block_number` found for struct `...
user avatar
3 votes
2 answers
62 views

Implementing min gas fee for pallet_evm

I have my base currency as 18 decimals like 1_000_000_000_000_000_000. I want to set my base fee to charge using 1_000_000_000_000_000_000 for each evm transaction. How can i do? currently i have done ...
user avatar
1 vote
0 answers
23 views

Read Token Contract Information

I would like to read contract information(especially name, symbol, decimal, owner) from token contracts like shown here: https://moonbeam.moonscan.io/token/0x818ec0a7fe18ff94269904fced6ae3dae6d6dc0b#...
user avatar
1 vote
1 answer
124 views

trait bound `H256: TypeInfo` is not satisfied; `TypeInfo` is not implemented for `H256, H160, H64, ethereum_types::U256`

Frontier(pallet-ethereum) project failed to compile after updating from polkadot-v0.9.17 to v0.9.18 Compiling polkadot-runtime v0.9.18 (https://github.com/paritytech/polkadot?branch=release-v0.9....
user avatar
  • 627
2 votes
0 answers
31 views

frontier ethereum pallet integration, the trait `fc_rpc::format::Formatter` is not implemented for `Geth`

I'm trying to copy a function from the frontier pallet(fc_rpc::format::Formatter), I copied it to a file and imported that. frontier-752fb1c28a6c675a/ea37e8f/client/rpc/src/format.rs It's the same ...
user avatar
  • 101
1 vote
1 answer
60 views

Where can I find frontier evm precompile documentation?

I'm trying to learn how to implement EVM pre-compiles in substrate (frontier), but I cannot find any documentation anywhere. If I try and reference something like moonbeam I fall into dependency hell. ...
user avatar
  • 35
4 votes
1 answer
102 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-...
user avatar
3 votes
1 answer
35 views

Existential deposit in EVM compatible address

I understand that there is an existential deposit for native token. But, there is any existential deposit for EVM compatible address H160?
user avatar
1 vote
1 answer
28 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<_, ...
user avatar
7 votes
1 answer
112 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>>{ ...
user avatar
1 vote
1 answer
34 views

Can I make a frontier node only accept json-rpc read methods?

Is there a way to filter ethereum json-rpc methods to only allow read calls, not writing? ie, filter out sendTransaction, sendRawTransaction, create, etc
user avatar
  • 161