Skip to content

Commit

Permalink
Merge branch 'main' of github.com:icon-project/xcall-multi into sui-x…
Browse files Browse the repository at this point in the history
…call-testnet-deploy
  • Loading branch information
Itshyphen committed Aug 20, 2024
2 parents ed361c8 + 3668c70 commit 2a92f29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ module xcall::centralized_connection {
}
// this is safe because only package can call this other xcall will call other deployed instance
public(package) fun send_message(states:&mut Bag,connection_id:String,coin:Coin<SUI>,to:String,sn:u128,msg:vector<u8>,is_response:bool,ctx: &mut TxContext){
let fee = get_fee(states,connection_id, to, is_response);
let mut fee = 0;
if(!is_response){
fee = get_fee(states,connection_id, to, sn>0);
};
assert!(coin.value() >= fee, ENotEnoughFee);
let balance = coin.into_balance();
centralized_state::deposit(get_state_mut(states,connection_id),balance);
Expand Down
2 changes: 1 addition & 1 deletion contracts/sui/xcall/sources/main.move
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module xcall::main {
const EInvalidConnectionId:u64 =15;

const MAX_DATA_SIZE: u64 = 2048;
const CURRENT_VERSION: u64 = 2;
const CURRENT_VERSION: u64 = 3;

/*************Events*****************/

Expand Down

0 comments on commit 2a92f29

Please sign in to comment.