diff --git a/manifests/dev/base/contracts/flippyflop-actions-4407e5f5.toml b/manifests/dev/base/contracts/flippyflop-actions-4407e5f5.toml index 1b0369f..38cb9f0 100644 --- a/manifests/dev/base/contracts/flippyflop-actions-4407e5f5.toml +++ b/manifests/dev/base/contracts/flippyflop-actions-4407e5f5.toml @@ -1,6 +1,6 @@ kind = "DojoContract" -class_hash = "0x70d01a0eed4c6d3eb05a19dc37bb2b0660b819a4f3be1537a957d9bc45da3c" -original_class_hash = "0x70d01a0eed4c6d3eb05a19dc37bb2b0660b819a4f3be1537a957d9bc45da3c" +class_hash = "0x5728ae47027cc1a450ef87fa6388d2dd47ef198f3521b85bee7be955c838802" +original_class_hash = "0x5728ae47027cc1a450ef87fa6388d2dd47ef198f3521b85bee7be955c838802" base_class_hash = "0x0" abi = "manifests/dev/base/abis/contracts/flippyflop-actions-4407e5f5.json" reads = [] diff --git a/manifests/dev/deployment/manifest.json b/manifests/dev/deployment/manifest.json index 4923d4c..525abf3 100644 --- a/manifests/dev/deployment/manifest.json +++ b/manifests/dev/deployment/manifest.json @@ -1311,8 +1311,8 @@ { "kind": "DojoContract", "address": "0x6dc710c0589d8ceb1a924c6632f4c9a8623f85c38a7e0cbed845157727b9b54", - "class_hash": "0x70d01a0eed4c6d3eb05a19dc37bb2b0660b819a4f3be1537a957d9bc45da3c", - "original_class_hash": "0x70d01a0eed4c6d3eb05a19dc37bb2b0660b819a4f3be1537a957d9bc45da3c", + "class_hash": "0x5728ae47027cc1a450ef87fa6388d2dd47ef198f3521b85bee7be955c838802", + "original_class_hash": "0x5728ae47027cc1a450ef87fa6388d2dd47ef198f3521b85bee7be955c838802", "base_class_hash": "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2", "abi": [ { diff --git a/manifests/dev/deployment/manifest.toml b/manifests/dev/deployment/manifest.toml index 4679b30..ae929ec 100644 --- a/manifests/dev/deployment/manifest.toml +++ b/manifests/dev/deployment/manifest.toml @@ -24,8 +24,8 @@ manifest_name = "dojo-base" [[contracts]] kind = "DojoContract" address = "0x6dc710c0589d8ceb1a924c6632f4c9a8623f85c38a7e0cbed845157727b9b54" -class_hash = "0x70d01a0eed4c6d3eb05a19dc37bb2b0660b819a4f3be1537a957d9bc45da3c" -original_class_hash = "0x70d01a0eed4c6d3eb05a19dc37bb2b0660b819a4f3be1537a957d9bc45da3c" +class_hash = "0x5728ae47027cc1a450ef87fa6388d2dd47ef198f3521b85bee7be955c838802" +original_class_hash = "0x5728ae47027cc1a450ef87fa6388d2dd47ef198f3521b85bee7be955c838802" base_class_hash = "0x2427dd10a58850ac9a5ca6ce04b7771b05330fd18f2e481831ad903b969e6b2" abi = "manifests/dev/deployment/abis/contracts/flippyflop-actions-4407e5f5.json" reads = [] diff --git a/src/systems/actions.cairo b/src/systems/actions.cairo index 1cf1800..7b82c55 100644 --- a/src/systems/actions.cairo +++ b/src/systems/actions.cairo @@ -47,7 +47,10 @@ mod actions { let y: u32 = ((hash / 100) % 100).try_into().unwrap(); let entity_hash = poseidon_hash_span(array![x.into(), y.into()].span()); - world.delete_entity_lobotomized(TILE_MODEL_SELECTOR, entity_hash); + world + .set_entity_lobotomized( + TILE_MODEL_SELECTOR, array![x.into(), y.into()].span(), entity_hash, 0 + ); } } }