Skip to content

jorgenbuilder/cap-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A minimal working example of CAP in Motoko.

main.mo

Deploy locally:

  1. Start a local version of the cap router canister.
  2. dfx deploy --no-wallet --argument "(opt "<LOCALNET_CAP_ROUTER_CANISTER_PRINCIPAL>")"
  3. dfx canister call minimalcap init
(variant { ok })

This doesn't work on mainnet! Steps to reproduce:

  1. dfx deploy --network ic --argument "(null)"
  2. dfx canister --network ic call minimalcap init
The Replica returned an error: code 4, message: "Error installing code: IC0502: Canister lj532-6iaaa-aaaah-qcc7a-cai trapped: unreachable"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors