Skip to content

Commit

Permalink
fix: fix smartcontracts
Browse files Browse the repository at this point in the history
Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com>
  • Loading branch information
0x009922 committed May 20, 2024
1 parent 946f49b commit e3df8cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#![no_std]

extern crate alloc;
#[cfg(not(test))]
extern crate panic_halt;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ mod token {
#[derive(
PartialEq,
Eq,
Token,
Permission,
ValidateGrantRevoke,
Decode,
Encode,
Expand Down Expand Up @@ -118,7 +118,7 @@ impl Executor {
.iter()
.try_for_each(|(account, domain_id)| {
Revoke::permission(
Permission::new(
PermissionObject::new(
can_unregister_domain_definition_id.clone(),
&json!({ "domain_id": domain_id }),
),
Expand All @@ -137,7 +137,10 @@ impl Executor {
})?;

Grant::permission(
Permission::new(can_control_domain_lives_definition_id.clone(), &json!(null)),
PermissionObject::new(
can_control_domain_lives_definition_id.clone(),
&json!(null),
),
account.id().clone(),
)
.execute()
Expand Down

0 comments on commit e3df8cd

Please sign in to comment.