You can play with an already deployed contract on a couple of dummy accounts
provided by us.
Just visit this website.
If you have the polkadot{.js}
extension and allow it on this website you will
be able to use your account instead of our dummy accounts. If you want to use the
dummy accounts just disable the extension.
cd contract
cargo +nightly contract build --release
If in the deployment phase your code gets rejected,
it may be because a wrong version of wasm-opt
. Try version 105:
link.
Go to substrate portal,
choose Aleph Zero Testnet
and click on Add New Contract
.
Provide contract/target/ink/<contract name>.contract
as bundle.
You should be able to interact with the contract in the substrate
portal by now.
cd ../front
npm install
REACT_APP_CONTRACT_ADDRESS=<your-contract-address> npm start
If you just run
npm start
it will run on localhost
with the contract deployed by us.