diff --git a/contracts/sui/xcall/sources/main.move b/contracts/sui/xcall/sources/main.move index 6152f54f..abf6ac0d 100644 --- a/contracts/sui/xcall/sources/main.move +++ b/contracts/sui/xcall/sources/main.move @@ -54,7 +54,7 @@ module xcall::main { const EInvalidConnectionId:u64 =15; const MAX_DATA_SIZE: u64 = 2048; - const CURRENT_VERSION: u64 = 1; + const CURRENT_VERSION: u64 = 2; /*************Events*****************/ diff --git a/contracts/sui/xcall/sources/utils.move b/contracts/sui/xcall/sources/utils.move index ee049e16..66e0ff9d 100644 --- a/contracts/sui/xcall/sources/utils.move +++ b/contracts/sui/xcall/sources/utils.move @@ -36,7 +36,9 @@ module xcall::xcall_utils { public fun address_to_hex_string(address:&address): String { let bytes = bcs::to_bytes(address); let hex_bytes = hex::encode(bytes); - string::utf8(hex_bytes) + let mut prefix = string::utf8(b"0x"); + prefix.append(string::utf8(hex_bytes)); + prefix } public fun address_from_hex_string(str: &String): address {