Skip to content

Commit b70f7f1

Browse files
docs(stellar): add token registration guide and enhance with callout (#1374)
Co-authored-by: ben-weinberg <[email protected]>
1 parent 1c32683 commit b70f7f1

File tree

3 files changed

+666
-9
lines changed

3 files changed

+666
-9
lines changed

src/content/docs/dev/send-tokens/stellar/deploy-new-token.mdx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,13 @@ impl ItsApp {
276276
token_id
277277
}
278278

279-
/// Transfer tokens to another blockchain
279+
/// Transfer interchain tokens to another blockchain
280280
pub fn transfer_tokens(
281281
env: &Env,
282282
caller: Address,
283283
token_id: BytesN<32>,
284284
destination_chain: String,
285-
destination_address: String,
285+
destination_address: Bytes,
286286
amount: i128,
287287
gas_token_address: Address,
288288
gas_amount: i128,
@@ -300,9 +300,6 @@ impl ItsApp {
300300
panic!("Invalid destination address");
301301
}
302302

303-
// Convert string address to bytes
304-
let dest_addr_bytes = Bytes::from_slice(env, destination_address.as_bytes());
305-
306303
// Prepare gas token
307304
let gas_token = Some(Token {
308305
address: gas_token_address,
@@ -314,7 +311,7 @@ impl ItsApp {
314311
&caller,
315312
&token_id,
316313
&destination_chain,
317-
&dest_addr_bytes,
314+
&destination_address,
318315
&amount,
319316
&None, // No additional data
320317
&gas_token,
@@ -517,7 +514,7 @@ stellar contract invoke \
517514
--caller YOUR_ACCOUNT_NAME \
518515
--destination_chain '"Avalanche"' \
519516
--gas_token_address CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC \
520-
--gas_amount 100000000
517+
--gas_amount 10000000
521518
```
522519

523520
> Notes:
@@ -555,7 +552,7 @@ stellar contract invoke \
555552
--destination_address '"YOUR_AVALANCHE_ADDRESS"' \
556553
--amount 100000000 \
557554
--gas_token_address CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC \
558-
--gas_amount 100000000
555+
--gas_amount 10000000
559556
```
560557

561558
> Notes:

0 commit comments

Comments
 (0)