@cryptorubic/web3 0.12.7-alpha-rub-121.0 → 0.12.7-alpha-rub-121.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NearWeb3Pure = void 0;
|
|
4
|
-
const core_1 = require("@cryptorubic/core");
|
|
5
4
|
const changenow_api_blockchain_1 = require("../constants/changenow-api-blockchain");
|
|
6
5
|
const common_web3_pure_1 = require("./common-web3-pure");
|
|
7
6
|
class NearWeb3Pure extends common_web3_pure_1.CommonWeb3Pure {
|
|
@@ -13,7 +12,7 @@ class NearWeb3Pure extends common_web3_pure_1.CommonWeb3Pure {
|
|
|
13
12
|
this.nativeTokenAddress = 'near';
|
|
14
13
|
}
|
|
15
14
|
async isAddressCorrect(address) {
|
|
16
|
-
if (
|
|
15
|
+
if (this.isNativeAddress(address)) {
|
|
17
16
|
return true;
|
|
18
17
|
}
|
|
19
18
|
if (this.regEx) {
|