Skip to content

Commit

Permalink
fix: interface for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju committed Apr 26, 2024
1 parent 46586b0 commit 5f9bcdd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contracts/sui/xcall/sources/states/xcall_state.move
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,11 @@ module xcall::xcall_state {
id
}

#[test_only]
#[test_only]
public fun share_storage_for_testing(admin:AdminCap,ctx: &mut TxContext):Storage {
create_storage(0,&admin,ctx)
let storage =create_storage(0,&admin,ctx);
transfer_admin_cap(admin,ctx);
storage
}

#[test_only]
Expand All @@ -308,8 +310,8 @@ module xcall::xcall_state {
}

#[test_only]
public fun create_id_cap_for_testing(ctx: &mut TxContext):IDCap {
create_id_cap(ctx)
public fun create_id_cap_for_testing(storage: &mut Storage,ctx: &mut TxContext):IDCap {
create_id_cap(storage,ctx)
}

}

0 comments on commit 5f9bcdd

Please sign in to comment.