Questions tagged [frontier]

Questions about the most popular Substrate EVM framework.

15 questions with no upvoted or accepted answers
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
1 vote
0 answers
62 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
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
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
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
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
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
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
148 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
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
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
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
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
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