Created
March 19, 2024 13:31
-
-
Save milancermak/2104832341d1d5b8f2638c0754cf9528 to your computer and use it in GitHub Desktop.
scarb compilation issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use starknet::ContractAddress; | |
#[starknet::interface] | |
trait IERC20<TContractState> { | |
fn name(self: @TContractState) -> ByteArray; | |
fn symbol(self: @TContractState) -> ByteArray; | |
fn decimals(self: @TContractState) -> u8; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod token; | |
mod interfaces { | |
mod IERC20; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "yikes" | |
version = "0.1.0" | |
edition = "2023_11" | |
[dependencies] | |
starknet = ">=2.6.0" | |
[[target.starknet-contract]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[starknet::contract] | |
mod token { | |
use yikes::interfaces::IERC20::IERC20; | |
#[storage] | |
struct Storage {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment