From f6ace62c8592b2139545315612920bc8e24ddfb5 Mon Sep 17 00:00:00 2001 From: Octavian Axente Date: Wed, 1 Feb 2023 21:51:52 +0200 Subject: [PATCH] Local Mint/Burn bug resolved --- .../TransactionsManager/TokenTransactionRequest.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Mx.NET.SDK/TransactionsManager/TokenTransactionRequest.cs b/src/Mx.NET.SDK/TransactionsManager/TokenTransactionRequest.cs index 2397df7..dd82079 100644 --- a/src/Mx.NET.SDK/TransactionsManager/TokenTransactionRequest.cs +++ b/src/Mx.NET.SDK/TransactionsManager/TokenTransactionRequest.cs @@ -236,7 +236,7 @@ public static TransactionRequest LocalMint( { var transaction = TransactionRequest.CreateCallSmartContractTransactionRequest(networkConfig, account, - SYSTEM_SMART_CONTRACT_ADDRESS, + account.Address, ESDTAmount.Zero(), ESDT_LOCAL_MINT, ESDTIdentifierValue.From(tokenIdentifier), @@ -264,7 +264,7 @@ public static TransactionRequest LocalBurn( { var transaction = TransactionRequest.CreateCallSmartContractTransactionRequest(networkConfig, account, - SYSTEM_SMART_CONTRACT_ADDRESS, + account.Address, ESDTAmount.Zero(), ESDT_LOCAL_BURN, ESDTIdentifierValue.From(tokenIdentifier), @@ -294,7 +294,7 @@ public static TransactionRequest Pause( PAUSE, ESDTIdentifierValue.From(tokenIdentifier)); - transaction.SetGasLimit(new GasLimit(500000)); + transaction.SetGasLimit(new GasLimit(60000000)); return transaction; } @@ -318,7 +318,7 @@ public static TransactionRequest Unpause( UNPAUSE, ESDTIdentifierValue.From(tokenIdentifier)); - transaction.SetGasLimit(new GasLimit(500000)); + transaction.SetGasLimit(new GasLimit(60000000)); return transaction; } @@ -345,7 +345,7 @@ public static TransactionRequest Freeze( ESDTIdentifierValue.From(tokenIdentifier), receiver); - transaction.SetGasLimit(new GasLimit(500000)); + transaction.SetGasLimit(new GasLimit(60000000)); return transaction; } @@ -372,7 +372,7 @@ public static TransactionRequest Unfreeze( ESDTIdentifierValue.From(tokenIdentifier), receiver); - transaction.SetGasLimit(new GasLimit(500000)); + transaction.SetGasLimit(new GasLimit(60000000)); return transaction; } @@ -400,7 +400,7 @@ public static TransactionRequest Wipe( ESDTIdentifierValue.From(tokenIdentifier), receiver); - transaction.SetGasLimit(new GasLimit(500000)); + transaction.SetGasLimit(new GasLimit(60000000)); return transaction; }