Skip to content

Commit

Permalink
fix: bug fixes in sui xcall (#308)
Browse files Browse the repository at this point in the history
* fix: set admin fixed

* fix: get fee added in entry as well
  • Loading branch information
gcranju authored and Itshyphen committed Aug 8, 2024
1 parent 54d466e commit 6f91b29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/evm/lib/openzeppelin-contracts-upgradeable
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,16 @@ module xcall::centralized_entry{
centralized_state::set_fee(state,net_id,message_fee,response_fee,ctx.sender());
}

entry fun get_receipt(states: &mut XCallState,net_id:String,sn:u128,ctx: &TxContext):bool{
entry fun get_receipt(states: &mut XCallState,net_id:String,sn:u128,_ctx: &TxContext):bool{
let state = get_state(states.get_connection_states_mut());
centralized_state::get_receipt(state,net_id,sn)
}

entry fun get_fee(states: &mut XCallState,net_id:String,response:bool,_ctx: &TxContext):u64{
let state = get_state(states.get_connection_states_mut());
centralized_state::get_fee(state,&net_id,response)
}




Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module xcall::centralized_state {
&self.cap
}

public(package) fun set_admin(self:&mut State,caller:address,admin:address){
public(package) fun set_admin(self:&mut State,admin:address,caller:address){
ensure_admin(self,caller);
self.admin=admin;
}
Expand Down

0 comments on commit 6f91b29

Please sign in to comment.