Skip to content

Commit

Permalink
Fix register event key, name ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui committed Aug 9, 2024
1 parent f6e2c52 commit 7f3300f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/versioning/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl Versioning {
env.storage().persistent().set(&key_, &project);

env.events()
.publish((symbol_short!("register"), name), key.clone());
.publish((symbol_short!("register"), key.clone()), name);
key
}
}
Expand Down
4 changes: 2 additions & 2 deletions contracts/versioning/src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ fn test() {
&env,
(
contract_id.clone(),
(symbol_short!("register"), name.clone()).into_val(&env),
id.clone().into_val(&env)
(symbol_short!("register"), id.clone()).into_val(&env),
name.into_val(&env)
),
(
contract_id.clone(),
Expand Down

0 comments on commit 7f3300f

Please sign in to comment.