Skip to content

Commit

Permalink
fix: remove receive message impl (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju authored Jan 6, 2025
1 parent 74bd608 commit 1164117
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ module xcall::cluster_entry{
use xcall::xcall_utils::{Self as utils};
use std::string::{String};

const MethodNotSupportedAnymore: u64 = 404;

entry public fun receive_message(xcall:&mut XCallState,cap:&ConnCap,src_net_id:String,sn:u128,msg:vector<u8>,ctx: &mut TxContext){
let state=get_state_mut(xcall_state::get_connection_states_mut(xcall),cap.connection_id());
cluster_state::check_save_receipt(state, src_net_id, sn);
xcall::handle_message(xcall, cap,src_net_id, msg,ctx);
assert(false, MethodNotSupportedAnymore);
}


entry fun claim_fees(xcall:&mut XCallState,cap:&ConnCap,ctx: &mut TxContext){
let state=get_state_mut(xcall_state::get_connection_states_mut(xcall),cap.connection_id());
cluster_state::claim_fees(state,ctx);
Expand Down

0 comments on commit 1164117

Please sign in to comment.