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 this but not working properly.
pub struct FixedGasPrice;
impl FeeCalculator for FixedGasPrice {
fn min_gas_price() -> U256 {
(1 * 1_000_000_000).into()
}
}
if i try to change this formula into (1 * 1_000_000_000_000_000_000).into()
i am getting error whenever i try to deploy the contract from remix. I am getting below error:
creation of MyToken20 errored: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32603,"message":"submit transaction to pool failed: Pool(InvalidTransaction(InvalidTransaction::Custom(1)))"}}}