@aeternity/aepp-sdk 13.2.0 → 13.2.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/dist/aepp-sdk.browser-script.js +1 -1
- package/dist/aepp-sdk.browser-script.js.map +1 -1
- package/dist/aepp-sdk.browser.js +1 -1
- package/dist/aepp-sdk.browser.js.map +1 -1
- package/dist/aepp-sdk.js +2 -2
- package/dist/aepp-sdk.js.map +1 -1
- package/es/contract/Contract.mjs +1 -1
- package/es/contract/Contract.mjs.map +1 -1
- package/es/tx/builder/field-types/u-int.mjs +1 -1
- package/es/tx/builder/field-types/u-int.mjs.map +1 -1
- package/package.json +1 -1
- package/src/contract/Contract.ts +1 -1
- package/src/tx/builder/field-types/u-int.ts +1 -1
package/dist/aepp-sdk.js
CHANGED
|
@@ -12055,7 +12055,7 @@ function isAuctionName(name) {
|
|
|
12055
12055
|
|
|
12056
12056
|
/* harmony default export */ const u_int = ({
|
|
12057
12057
|
serialize(value) {
|
|
12058
|
-
if (
|
|
12058
|
+
if (Number(value) < 0) throw new ArgumentError('value', 'greater or equal to 0', value);
|
|
12059
12059
|
return toBytes(value, true);
|
|
12060
12060
|
},
|
|
12061
12061
|
deserialize(value) {
|
|
@@ -21160,7 +21160,7 @@ class Contract {
|
|
|
21160
21160
|
} = opt;
|
|
21161
21161
|
if (fn == null) throw new MissingFunctionNameError();
|
|
21162
21162
|
if (fn === 'init' && callStatic !== true) throw new InvalidMethodInvocationError('"init" can be called only via dryRun');
|
|
21163
|
-
if (fn !== 'init' && opt.amount != null &&
|
|
21163
|
+
if (fn !== 'init' && opt.amount != null && Number(opt.amount) > 0 && !fnAci.payable) {
|
|
21164
21164
|
throw new NotPayableFunctionError(opt.amount, fn);
|
|
21165
21165
|
}
|
|
21166
21166
|
let callerId;
|