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.mjs
CHANGED
|
@@ -6836,10 +6836,13 @@ var RpcProvider = class {
|
|
|
6836
6836
|
],
|
|
6837
6837
|
error: [
|
|
6838
6838
|
"argent/invalid-signature",
|
|
6839
|
+
"0x617267656e742f696e76616c69642d7369676e6174757265",
|
|
6839
6840
|
// ArgentX 0.3.0 to 0.3.1
|
|
6840
6841
|
"is invalid, with respect to the public key",
|
|
6842
|
+
"0x697320696e76616c6964",
|
|
6841
6843
|
// OpenZeppelin until 0.6.1, Braavos 0.0.11
|
|
6842
|
-
"INVALID_SIG"
|
|
6844
|
+
"INVALID_SIG",
|
|
6845
|
+
"0x494e56414c49445f534947"
|
|
6843
6846
|
// Braavos 1.0.0
|
|
6844
6847
|
]
|
|
6845
6848
|
};
|
|
@@ -10566,7 +10569,7 @@ var Contract = class {
|
|
|
10566
10569
|
return this.callData.parse(method, it);
|
|
10567
10570
|
});
|
|
10568
10571
|
}
|
|
10569
|
-
invoke(method, args = [], { parseRequest = true,
|
|
10572
|
+
invoke(method, args = [], { parseRequest = true, signature, ...RestInvokeOptions } = {}) {
|
|
10570
10573
|
assert(this.address !== null, "contract is not connected to an address");
|
|
10571
10574
|
const calldata = getCalldata(args, () => {
|
|
10572
10575
|
if (parseRequest) {
|
|
@@ -10583,11 +10586,11 @@ var Contract = class {
|
|
|
10583
10586
|
};
|
|
10584
10587
|
if ("execute" in this.providerOrAccount) {
|
|
10585
10588
|
return this.providerOrAccount.execute(invocation, {
|
|
10586
|
-
|
|
10587
|
-
nonce
|
|
10589
|
+
...RestInvokeOptions
|
|
10588
10590
|
});
|
|
10589
10591
|
}
|
|
10590
|
-
if (!nonce)
|
|
10592
|
+
if (!RestInvokeOptions.nonce)
|
|
10593
|
+
throw new Error(`Nonce is required when invoking a function without an account`);
|
|
10591
10594
|
logger.warn(`Invoking ${method} without an account. This will not work on a public node.`);
|
|
10592
10595
|
return this.providerOrAccount.invokeFunction(
|
|
10593
10596
|
{
|
|
@@ -10595,7 +10598,8 @@ var Contract = class {
|
|
|
10595
10598
|
signature
|
|
10596
10599
|
},
|
|
10597
10600
|
{
|
|
10598
|
-
|
|
10601
|
+
...RestInvokeOptions,
|
|
10602
|
+
nonce: RestInvokeOptions.nonce
|
|
10599
10603
|
}
|
|
10600
10604
|
);
|
|
10601
10605
|
}
|