Skip to content

Commit

Permalink
Merge pull request #77 from multiversx/update-09-17
Browse files Browse the repository at this point in the history
"TokenTransfer" is an alias of "TokenAmount" (and both are DTOs)
  • Loading branch information
andreibancioiu authored Sep 17, 2024
2 parents 96f7dae + 9023fd2 commit 32838d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions core/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,13 @@ dto TokenIdentifierParts:
This is a synonym for `TokenAmount`.

```
dto TokenTransfer implements ITokenAmount:
token: Token;
amount: Amount;
dto TokenTransfer = TokenAmount;
```

## ITokenAmount
## TokenAmount

```
interface ITokenAmount:
dto TokenAmount:
token: Token;
// Always in atomic units, e.g. for expressing 1.000000 "USDC-c76f1f", it must be "1000000".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SmartContractTransactionsFactory:
function: string;
arguments: List[object] = [];
native_transfer_amount: Amount = 0;
token_transfers: List[ITokenAmount] = [];
token_transfers: List[TokenAmount] = [];
gasLimit: uint32;
}): Transaction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ class TransferTransactionsFactory:
create_transaction_for_esdt_token_transfer({
sender: IAddress;
receiver: IAddress;
token_transfers: ITokenAmount[];
token_transfers: TokenAmount[];
}): Transaction;
```

0 comments on commit 32838d0

Please sign in to comment.