Timeline for Collect some transfer fees before any transaction
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 16, 2022 at 4:36 | comment | added | Lovish Arora |
Hey @shawn, I tried this but I am getting an error. Can you please help? error[E0308]: mismatched types --> network-node/runtime/dev/src/impls.rs:68:25 | 68 | let fee = fee + 3000; | ^^^^ expected associated type, found integer | = note: expected associated type <C as hidden_include::traits::Currency<<T as SysConfig>::AccountId>>::Balance found type {integer} What should I pass here? I want to add 0.3 to the overall fee
|
|
Oct 27, 2022 at 7:47 | vote | accept | Lovish Arora | ||
Oct 4, 2022 at 22:18 | comment | added | Shawn Tabrizi♦ | This is an external trait implementation that you can plug into an unchanged transaction payment pallet. | |
Oct 4, 2022 at 21:07 | comment | added | Lovish Arora | Hey @shawn thanks for the reply. But is there a way to do it without changing code in transaction payment pallet ? because I am using parity substrate repo directly to for transaction payment pallet. or are you saying that I should create a custom CustomCurrencyAdapter in my code and use that in my code? Please correct If I am taking it in the wrong direction. Thanks | |
Sep 21, 2022 at 23:37 | history | answered | Shawn Tabrizi♦ | CC BY-SA 4.0 |