-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dojo] issue with delete_entity command #525
Comments
@bal7hazar can you confirm this is still an issue |
@neotheprogramist can you confirm this is resolved with the new indexer logic |
I don't think we addressed this issue while working on the indexer logic. |
I did not use it for a while, not sure if it is still an issue, better to close and reopen if needed probably. |
This test fails with #[test]
#[available_gas(30000000)]
fn test_delete_entity() {
let (caller, world, actions_) = init();
let energy_init = Energy { amt: 10, id: 1 };
set!(world, (energy_init));
let energy = get!(world, (1), (Energy));
assert(energy.amt == 10, 'incorrect energy');
world.delete_entity('RPSType', array![1].span());
let post_delete_energy = get!(world, (1), (Energy));
assert(post_delete_energy.amt == 0, 'incorrect post delete energy');
}
|
I'm happy to grab this, we need to delete entities... |
how did you go with this @shramee ? |
This is fixed and merged |
I am facing an issue while using commands::delete_entity that leads to not delete my entity and allow the following test to pass:
By using the following work around, I succeeded to have my entity to be deleted
The text was updated successfully, but these errors were encountered: