starknet 7.6.0 → 7.6.2
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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.global.js +10 -6
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -6978,10 +6978,13 @@ var RpcProvider = class {
|
|
|
6978
6978
|
],
|
|
6979
6979
|
error: [
|
|
6980
6980
|
"argent/invalid-signature",
|
|
6981
|
+
"0x617267656e742f696e76616c69642d7369676e6174757265",
|
|
6981
6982
|
// ArgentX 0.3.0 to 0.3.1
|
|
6982
6983
|
"is invalid, with respect to the public key",
|
|
6984
|
+
"0x697320696e76616c6964",
|
|
6983
6985
|
// OpenZeppelin until 0.6.1, Braavos 0.0.11
|
|
6984
|
-
"INVALID_SIG"
|
|
6986
|
+
"INVALID_SIG",
|
|
6987
|
+
"0x494e56414c49445f534947"
|
|
6985
6988
|
// Braavos 1.0.0
|
|
6986
6989
|
]
|
|
6987
6990
|
};
|
|
@@ -10708,7 +10711,7 @@ var Contract = class {
|
|
|
10708
10711
|
return this.callData.parse(method, it);
|
|
10709
10712
|
});
|
|
10710
10713
|
}
|
|
10711
|
-
invoke(method, args = [], { parseRequest = true,
|
|
10714
|
+
invoke(method, args = [], { parseRequest = true, signature, ...RestInvokeOptions } = {}) {
|
|
10712
10715
|
assert(this.address !== null, "contract is not connected to an address");
|
|
10713
10716
|
const calldata = getCalldata(args, () => {
|
|
10714
10717
|
if (parseRequest) {
|
|
@@ -10725,11 +10728,11 @@ var Contract = class {
|
|
|
10725
10728
|
};
|
|
10726
10729
|
if ("execute" in this.providerOrAccount) {
|
|
10727
10730
|
return this.providerOrAccount.execute(invocation, {
|
|
10728
|
-
|
|
10729
|
-
nonce
|
|
10731
|
+
...RestInvokeOptions
|
|
10730
10732
|
});
|
|
10731
10733
|
}
|
|
10732
|
-
if (!nonce)
|
|
10734
|
+
if (!RestInvokeOptions.nonce)
|
|
10735
|
+
throw new Error(`Nonce is required when invoking a function without an account`);
|
|
10733
10736
|
logger.warn(`Invoking ${method} without an account. This will not work on a public node.`);
|
|
10734
10737
|
return this.providerOrAccount.invokeFunction(
|
|
10735
10738
|
{
|
|
@@ -10737,7 +10740,8 @@ var Contract = class {
|
|
|
10737
10740
|
signature
|
|
10738
10741
|
},
|
|
10739
10742
|
{
|
|
10740
|
-
|
|
10743
|
+
...RestInvokeOptions,
|
|
10744
|
+
nonce: RestInvokeOptions.nonce
|
|
10741
10745
|
}
|
|
10742
10746
|
);
|
|
10743
10747
|
}
|