Questions tagged [frontier]

Questions about the most popular Substrate EVM framework.

Filter by
Sorted by
Tagged with
1 vote
1 answer
64 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","...
Nikhil Ranjan's user avatar
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-...
Unknown Helper's user avatar
1 vote
0 answers
34 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-...
Adam Wierzbicki's user avatar
0 votes
2 answers
53 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 ...
afm's user avatar
  • 185
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` --&...
kula's user avatar
  • 111
1 vote
2 answers
106 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 ...
afm's user avatar
  • 185
2 votes
2 answers
91 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 ...
jangorecki's user avatar
1 vote
1 answer
149 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 ...
flipchan's user avatar
  • 171
1 vote
1 answer
174 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 `...
Faraz Ahmad's user avatar
3 votes
2 answers
97 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 ...
Faraz Ahmad's user avatar
1 vote
0 answers
38 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#...
user2395's user avatar
1 vote
1 answer
272 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....
Russo's user avatar
  • 1,033
2 votes
0 answers
39 views

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

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 ...
flipchan's user avatar
  • 171
1 vote
2 answers
132 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. ...
jjreedv's user avatar
  • 35
4 votes
1 answer
113 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-...
Ajit Chaudhary's user avatar
3 votes
1 answer
62 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?
Tomasz Waszczyk's user avatar
1 vote
1 answer
44 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<_, ...
Stefan Muto's user avatar
8 votes
2 answers
428 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>>{ ...
Stefan Muto's user avatar
1 vote
1 answer
59 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
afm's user avatar
  • 185

1
2