@@ -276,13 +276,13 @@ impl ItsApp {
276
276
token_id
277
277
}
278
278
279
- /// Transfer tokens to another blockchain
279
+ /// Transfer interchain tokens to another blockchain
280
280
pub fn transfer_tokens (
281
281
env : & Env ,
282
282
caller : Address ,
283
283
token_id : BytesN <32 >,
284
284
destination_chain : String ,
285
- destination_address : String ,
285
+ destination_address : Bytes ,
286
286
amount : i128 ,
287
287
gas_token_address : Address ,
288
288
gas_amount : i128 ,
@@ -300,9 +300,6 @@ impl ItsApp {
300
300
panic! (" Invalid destination address" );
301
301
}
302
302
303
- // Convert string address to bytes
304
- let dest_addr_bytes = Bytes :: from_slice (env , destination_address . as_bytes ());
305
-
306
303
// Prepare gas token
307
304
let gas_token = Some (Token {
308
305
address : gas_token_address ,
@@ -314,7 +311,7 @@ impl ItsApp {
314
311
& caller ,
315
312
& token_id ,
316
313
& destination_chain ,
317
- & dest_addr_bytes ,
314
+ & destination_address ,
318
315
& amount ,
319
316
& None , // No additional data
320
317
& gas_token ,
@@ -517,7 +514,7 @@ stellar contract invoke \
517
514
--caller YOUR_ACCOUNT_NAME \
518
515
--destination_chain ' "Avalanche"' \
519
516
--gas_token_address CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC \
520
- --gas_amount 100000000
517
+ --gas_amount 10000000
521
518
```
522
519
523
520
> Notes:
@@ -555,7 +552,7 @@ stellar contract invoke \
555
552
--destination_address ' "YOUR_AVALANCHE_ADDRESS"' \
556
553
--amount 100000000 \
557
554
--gas_token_address CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC \
558
- --gas_amount 100000000
555
+ --gas_amount 10000000
559
556
```
560
557
561
558
> Notes:
0 commit comments