Skip to content

Commit 433a0e9

Browse files
georgeburduhosTibi Krisboi
authored andcommitted
update
1 parent c9ab62b commit 433a0e9

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "moonlet",
3-
"version": "1.5.21",
3+
"version": "1.5.22",
44
"private": true,
55
"scripts": {
66
"generate-icons": "mkdir -p resources/fonts && icon-font-generator ./src/assets/icons/svg/*.svg -o resources/fonts --height 1024 --types ttf",

src/redux/ui/screens/data/actions/transactions/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export interface IContractCallParams {
2828
amount: string;
2929
contractMethod: string;
3030
contractType: Contracts;
31+
contractAddress?: string;
3132
tokenSymbol: string;
3233
additionalInfo: any;
3334
fees?: {

src/redux/ui/screens/data/actions/transactions/transaction-builder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ export const buildContractCallTransaction = async (
3131

3232
let contractAddress: string = '';
3333

34-
if (params.contractType === Contracts.TOKEN_CONTRACT) {
34+
if (params.contractAddress) {
35+
contractAddress = params.contractAddress;
36+
} else if (params.contractType === Contracts.TOKEN_CONTRACT) {
3537
const configToken = getTokenConfig(account.blockchain, params.tokenSymbol);
3638
contractAddress = configToken.contractAddress;
3739
} else {

0 commit comments

Comments
 (0)