@taquito/contracts-library 22.0.0 → 23.0.0-beta.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.
|
@@ -66,7 +66,7 @@ class ContractsLibrary {
|
|
|
66
66
|
validateContractAddress(address) {
|
|
67
67
|
const addressValidation = (0, utils_1.validateAddress)(address);
|
|
68
68
|
if (addressValidation !== utils_1.ValidationResult.VALID) {
|
|
69
|
-
throw new core_1.InvalidAddressError(address,
|
|
69
|
+
throw new core_1.InvalidAddressError(address, addressValidation);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
validateContractScriptFormat(script, address) {
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "
|
|
6
|
+
"commitHash": "10b3de10de15ae68d47b1fca922d3129d2f79641",
|
|
7
|
+
"version": "23.0.0-beta.1"
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateAddress, ValidationResult
|
|
1
|
+
import { validateAddress, ValidationResult } from '@taquito/utils';
|
|
2
2
|
import { ParameterValidationError, InvalidAddressError } from '@taquito/core';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -191,7 +191,7 @@ class ContractsLibrary {
|
|
|
191
191
|
validateContractAddress(address) {
|
|
192
192
|
const addressValidation = validateAddress(address);
|
|
193
193
|
if (addressValidation !== ValidationResult.VALID) {
|
|
194
|
-
throw new InvalidAddressError(address,
|
|
194
|
+
throw new InvalidAddressError(address, addressValidation);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
validateContractScriptFormat(script, address) {
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
validateContractAddress(address) {
|
|
195
195
|
const addressValidation = utils.validateAddress(address);
|
|
196
196
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
197
|
-
throw new core.InvalidAddressError(address,
|
|
197
|
+
throw new core.InvalidAddressError(address, addressValidation);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
validateContractScriptFormat(script, address) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/contracts-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0-beta.1",
|
|
4
4
|
"description": "Can be used as an extension on the TezosToolkit to provide contracts data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos"
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@taquito/core": "^
|
|
71
|
-
"@taquito/rpc": "^
|
|
72
|
-
"@taquito/taquito": "^
|
|
73
|
-
"@taquito/utils": "^
|
|
70
|
+
"@taquito/core": "^23.0.0-beta.1",
|
|
71
|
+
"@taquito/rpc": "^23.0.0-beta.1",
|
|
72
|
+
"@taquito/taquito": "^23.0.0-beta.1",
|
|
73
|
+
"@taquito/utils": "^23.0.0-beta.1",
|
|
74
74
|
"bignumber.js": "^9.1.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
"ts-toolbelt": "^9.6.0",
|
|
102
102
|
"typescript": "~5.5.4"
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "1469d6f0d55134a4b853598a2eec48e6f71b3da3"
|
|
105
105
|
}
|