pretty like interface in solidity, in zink we use the built-in rust trait
Solution
// we need to export all methods from ERC20 & override the function `name` in this macro
#[zink::interface]
impl ERC20 for MyContract {
fn name() -> String32 {
"foo"
}
}
Describe the feature
pretty like
interface
in solidity, in zink we use the built-in rust traitSolution