Skip to content

Instantly share code, notes, and snippets.

@milancermak
Created March 19, 2024 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milancermak/2104832341d1d5b8f2638c0754cf9528 to your computer and use it in GitHub Desktop.
Save milancermak/2104832341d1d5b8f2638c0754cf9528 to your computer and use it in GitHub Desktop.
scarb compilation issue
use starknet::ContractAddress;
#[starknet::interface]
trait IERC20<TContractState> {
fn name(self: @TContractState) -> ByteArray;
fn symbol(self: @TContractState) -> ByteArray;
fn decimals(self: @TContractState) -> u8;
}
mod token;
mod interfaces {
mod IERC20;
}
[package]
name = "yikes"
version = "0.1.0"
edition = "2023_11"
[dependencies]
starknet = ">=2.6.0"
[[target.starknet-contract]]
#[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