Questions tagged [erc20]
The erc20 tag has no usage guidance.
4
questions
1
vote
1
answer
84
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&...
1
vote
1
answer
52
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: ...
5
votes
1
answer
144
views
Why does the Astar XC20 wrapper example use the ERC20 wrapper functionality?
I am working on an XC20 implementation of an existing ERC20. I am basing the contract off of the Astar here.
I noticed there is some code inherited from the ERC20 contract via the ERC20Wrapper ...
0
votes
1
answer
55
views
How to initiate SpreadAllocated storage including other contract reference?
use erc20::Erc20Ref;
use ink_storage::traits::SpreadAllocate;
#[ink(storage)]
#[derive(SpreadAllocate)]
pub struct Bridge {
map: ink_storage::Mapping<AccountId, u32>,
token: Erc20Ref,
}
...