@pushchain/core 2.0.14 → 2.0.16
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
|
@@ -847,7 +847,7 @@ class Orchestrator {
|
|
|
847
847
|
}
|
|
848
848
|
return this.universalSigner.signTypedData({
|
|
849
849
|
domain: {
|
|
850
|
-
version: version || '1.0
|
|
850
|
+
version: version || '0.1.0',
|
|
851
851
|
chainId: Number(chainId),
|
|
852
852
|
verifyingContract,
|
|
853
853
|
},
|
|
@@ -872,7 +872,7 @@ class Orchestrator {
|
|
|
872
872
|
const digest = this.computeExecutionHash({
|
|
873
873
|
verifyingContract,
|
|
874
874
|
payload: universalPayload,
|
|
875
|
-
version: version || '1.0
|
|
875
|
+
version: version || '0.1.0',
|
|
876
876
|
});
|
|
877
877
|
return this.universalSigner.signMessage((0, viem_1.stringToBytes)(digest));
|
|
878
878
|
}
|
|
@@ -985,7 +985,7 @@ class Orchestrator {
|
|
|
985
985
|
* @param payload - Execution details encoded into the UniversalPayload struct
|
|
986
986
|
* @returns keccak256 digest to be signed by the user
|
|
987
987
|
*/
|
|
988
|
-
computeExecutionHash({ verifyingContract, payload, version = '1.0
|
|
988
|
+
computeExecutionHash({ verifyingContract, payload, version = '0.1.0', }) {
|
|
989
989
|
const chain = this.universalSigner.account.chain;
|
|
990
990
|
const { vm, chainId } = chain_1.CHAIN_INFO[chain];
|
|
991
991
|
// 1. Type hash
|
|
@@ -1689,13 +1689,13 @@ class Orchestrator {
|
|
|
1689
1689
|
const { vm } = chain_1.CHAIN_INFO[chain];
|
|
1690
1690
|
const abi = vm === enums_1.VM.EVM ? uea_evm_1.UEA_EVM : abi_1.UEA_SVM;
|
|
1691
1691
|
const predictedUEA = this.computeUEAOffchain();
|
|
1692
|
-
// Only attempt to read VERSION if UEA is deployed; otherwise default to 1.0
|
|
1692
|
+
// Only attempt to read VERSION if UEA is deployed; otherwise default to 0.1.0
|
|
1693
1693
|
const code = yield this.pushClient.publicClient.getCode({
|
|
1694
1694
|
address: predictedUEA,
|
|
1695
1695
|
});
|
|
1696
1696
|
if (code === undefined) {
|
|
1697
|
-
this.ueaVersionCache = '1.0
|
|
1698
|
-
return '1.0
|
|
1697
|
+
this.ueaVersionCache = '0.1.0';
|
|
1698
|
+
return '0.1.0';
|
|
1699
1699
|
}
|
|
1700
1700
|
const version = yield this.pushClient.readContract({
|
|
1701
1701
|
address: predictedUEA,
|