Skip to content

Commit b16db31

Browse files
committed
Wording adjustments
1 parent 497a18b commit b16db31

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

standards/src10-native-bridge/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ The following functions MUST be implemented to follow the SRC-10; Native Bridge
2727

2828
### - `fn register_token(token_address: b256, gateway_contract: b256)`
2929

30-
The `register_token()` function compiles a message to be sent back to the canonical chain. The `gateway_contract` contract on the canonical chain receives the `token_address` token on the canonical chain in the message such that when assets are deposited they are reported to prevent loss of funds.
30+
The `register_token()` function compiles a message to be sent back to the canonical chain to register a token to be bridged. The `gateway_contract` contract on the canonical chain receives the `token_address` token address in the message such that when `token_addess` tokens are deposited on the canonical chain they are reported to prevent loss of funds.
3131

3232
> **NOTE:*** Trying to deposit tokens to a contract ID that does not exist or does not implement the Fuel Messaging Portal would mean permanent loss of funds.
3333
34-
- This function MUST send a message on the canonical chain to the `gateway_contract` contract on the canonical chain, registering the specified `token_address` token that exists on the canonical chain.
34+
- This function MUST send a message on the canonical chain to the `gateway_contract` contract, registering the specified `token_address` token that exists on the canonical chain.
3535

3636
### - `fn process_message(message_index: u64)`
3737

@@ -43,7 +43,7 @@ The `process_message()` function accepts incoming deposit messages from the cano
4343

4444
### - `fn withdraw(to_address: b256, sub_id: SubId, gateway_contract: b256)`
4545

46-
The `withdraw()` function accepts and burns a bridged asset and sends a message to the `gateway_contract` contract on the canonical chain to release the originally deposited token to the `to_address` address.
46+
The `withdraw()` function accepts and burns a bridged Native Asset on Fuel and sends a message to the `gateway_contract` contract on the canonical chain to release the originally deposited tokens to the `to_address` address.
4747

4848
- This function SHALL send a message to the `gateway_contract` contract to release the bridged tokens to the `to_address` address on the canonical chain.
4949
- This function MUST ensure the `sha256(contract_id(), sub_id)` digest matches the asset's `AssetId` sent in the transaction.

standards/src10-native-bridge/src/src10.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abi SRC10 {
2121
///
2222
/// # Additional Information
2323
///
24-
/// * The `gateway` contract on the canonical chain receives the `token` ID in the message such that when assets are deposited they are reported to prevent loss of funds.
24+
/// * The `gateway` contract on the canonical chain receives the `token_address` ID in the message such that when assets are deposited they are reported to prevent loss of funds.
2525
///
2626
/// # Arguments
2727
///

0 commit comments

Comments
 (0)