Timeline for MetaMask showing 'transfer' method - How do I switch it to 'Smart Contract Interaction'?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 6, 2022 at 21:24 | comment | added | ozftm | Hi, Thanks for replying. I've tried your method and it works great but I've run into another issue. Now the value of the transaction is not showing up in the MetaMask transaction. Any ideas? Cheers | |
Sep 2, 2022 at 15:08 | comment | added | kev1n | @LauriPeltonen I completely forgot about being compliant with the ERC20 standard. Good thinking | |
Sep 2, 2022 at 6:20 | comment | added | Lauri Peltonen |
Just a note for your otherwise good answer: renaming the function name makes the contract non-ERC20 compatible. A better alternative (if the user really doesn't want to use the default transfer function) would be to add a new custom function which just forwards the call to the transfer function.
|
|
Sep 2, 2022 at 3:36 | history | answered | kev1n | CC BY-SA 4.0 |