Skip to content

Commit

Permalink
fix: fix mockdapp test
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrizsabin committed Jun 25, 2024
1 parent efdb64e commit 5981087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/sui/mock_dapp/tests/mock_dapp_tests.move
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ module mock_dapp::mock_dapp_tests {
fun setup_connection(admin:address,mut scenario:Scenario):Scenario {
let mut xcall_state= scenario.take_shared<XCallState>();
let adminCap=scenario.take_from_sender<AdminCap>();
xcall::register_connection(&mut xcall_state,&adminCap,string::utf8(b"netid"),string::utf8(b"centralized-1"),admin,scenario.ctx());
xcall::register_connection_admin(&mut xcall_state,&adminCap,string::utf8(b"centralized-1"),admin,scenario.ctx());
xcall::set_default_connection(&mut xcall_state,&adminCap,string::utf8(b"netid"),string::utf8(b"centralized-1"),scenario.ctx());
test_scenario::return_shared<XCallState>(xcall_state);
scenario.return_to_sender(adminCap);
scenario.next_tx(admin);
Expand Down

0 comments on commit 5981087

Please sign in to comment.