Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddimaria/rust-blockchain-tutorial
/ State
Class
State
contracts/erc20/src/lib.rs:8–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
pub struct Erc20;
7
8
pub struct State {
9
name: String,
10
symbol: String,
11
balances: HashMap<String, u64>,
12
}
13
14
export_contract!(Erc20);
15
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected