Skip to content

Commit

Permalink
Disable walnut flag in auto_authorize
Browse files Browse the repository at this point in the history
  • Loading branch information
barabanovro committed Sep 6, 2024
1 parent 302b2a0 commit 9d3147f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/sozo/ops/src/migration/auto_auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ where
{
let ui = ws.config().ui();

grant_writer(&ui, world, grant, *txn_config, default_namespace, rpc_url).await?;
revoke_writer(&ui, world, revoke, *txn_config, default_namespace, rpc_url).await?;
// Disable the walnut flag
let txn_config_without_walnut = TxnConfig { walnut: false, ..*txn_config };

grant_writer(&ui, world, grant, txn_config_without_walnut, default_namespace, rpc_url).await?;
revoke_writer(&ui, world, revoke, txn_config_without_walnut, default_namespace, rpc_url).await?;

Ok(())
}

0 comments on commit 9d3147f

Please sign in to comment.