Skip to content

Commit 28b118d

Browse files
author
jagdeep sidhu
committed
update freeze burn
1 parent da65e53 commit 28b118d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class CONFIGURATION {
44
this.Web3URL = "https://rpc.syscoin.org";
55
this.RelayContract = "0xD822557aC2F2b77A1988617308e4A29A89Cb95A6";
66
this.ERC20Manager = "0xA738a563F9ecb55e0b2245D1e9E380f0fE455ea1";
7-
this.TokenFreezeFunction = "0x7ca654cf9212e4c3cf0164a529dd6159fc71113f867d0b09fdeb10aa65780732";
7+
this.TokenFreezeFunction = "0x8f3b257b2cea086a69bcfbefab36555c9e6275fc56ada0f1d8796222f6874fec";
88
this.NEVMExplorerURL = "https://explorer.syscoin.org/";
99
this.NEVMAddressExplorerURL = this.NEVMExplorerURL + "address/";
1010
this.SyscoinTxExplorerURL = "https://blockbook.elint.services/tx/";
@@ -16,7 +16,7 @@ class CONFIGURATION {
1616
this.NativeCurrencyName = "Syscoin";
1717
this.NativeCurrencySymbol = "SYS";
1818
this.SYSXAsset = "123456";
19-
this.TokenUnfreezeFn = '0x8561b3bd1c885cb9cea8df62881a35fe7335336cd5450fd96d14176100c4657d';
19+
this.TokenUnfreezeFn = '0x4f3215d035d7407ce0b19bc31b8e8e9269d0af49093fbf8ec1a11a2c58a73061';
2020
this.SysNetwork = sjs.utils.syscoinNetworks.mainnet;
2121
this.EasySwapAPI = "http://localhost:8080/api/"
2222
}

src/wizard/Step1EthToSys.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class Step1ES extends Component {
245245
}
246246
return "";
247247
}
248-
freezeBurnERC20(
248+
freezeBurn(
249249
syscoinTP,
250250
validateNewInput,
251251
thisObj,
@@ -257,7 +257,7 @@ class Step1ES extends Component {
257257
) {
258258
thisObj.state.receiptObj = null;
259259
syscoinTP.methods
260-
.freezeBurnERC20(amount, assetGUID, syscoinWitnessAddress)
260+
.freezeBurn(amount, assetGUID === CONFIGURATION.SYSXAsset? 0: assetGUID, 0, syscoinWitnessAddress)
261261
.send({
262262
from: fromAccount,
263263
gas: 400000,
@@ -665,7 +665,7 @@ class Step1ES extends Component {
665665
.once("confirmation", function (confirmationNumber, receipt) {
666666
if (bFirstConfirmation) {
667667
bFirstConfirmation = false;
668-
thisObj.freezeBurnERC20(
668+
thisObj.freezeBurn(
669669
syscoinERC20Manager,
670670
validateNewInput,
671671
thisObj,
@@ -719,7 +719,7 @@ class Step1ES extends Component {
719719
}
720720
});
721721
} else {
722-
thisObj.freezeBurnERC20(
722+
thisObj.freezeBurn(
723723
syscoinERC20Manager,
724724
validateNewInput,
725725
thisObj,

0 commit comments

Comments
 (0)