Skip to content

ithunter0428/TrainingVersion_Transfercontract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust+WASM contracts

This guide assumes a Unix-like environment.

Prerequisites

  • Rust nightly toolchain (see rustup.rs)
  • Rust wasm32-unknown-unkown target
  • Toolchain zip from PBC (insert link)

Create a new contract

  1. Extract the toolchain to a folder: /tmp/pbc-rust-wasm
  2. Inside the folder you will find a folder called token-contract.
  3. To compile the example contract run cargo +nightly build --target wasm32-unknown-unknown from the token-contract folder
  4. There should now be a WASM file named token-contract.wasm in /tmp/pbc-rust-wasm/token-contract/target/wasm32-unknown-unknown/debug/.

About

Test: TrainingVersion_Transfercontract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages