Skip to content

pixelaw/torii_delete_issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Torii Delete Issue

This repository demonstrates the issue experienced by the torii client when a delete occurs in the world. It comprises a dojo contract in the contract directory and a react-app in the react-app directory. It only has one model, Person, which comprises an id, name, and age. Using the react-app, a user can create a person and delete a person.

Prerequisites

Install dojoup

curl -L https://install.dojoengine.org | bash

Install dojo v0.6.0-alpha.3

dojoup --version v0.6.0-alpha.3

Build contract

sozo build --manifest-path ./contract/Scarb.toml

Install react-app dependencies

cd react-app && yarn install

Steps to simulate issue

Run katana

katana

Migrate world

cd contract && sozo migrate

Initialize the world

bash contract/scripts/default_auth.sh

Run torii

torii -w 0x2cfdabed6e6ae30ccc38f33624dc2067281a1cb69530d6b973826517c3a3904 -d TORII.sqlite

Run react-app

cd react-app && yarn dev

Then, deploy a burner account. Create a person. Then delete said person.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published