@spicenet-io/spiceflow-ui 1.9.30 → 1.9.32
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/index.cjs.js +5 -3
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5264,13 +5264,14 @@ const DepositWidget = ({
|
|
|
5264
5264
|
const authorizations = [];
|
|
5265
5265
|
for (const chainId of uniqueChainIds) {
|
|
5266
5266
|
const client = getClientForChain(chainId);
|
|
5267
|
-
|
|
5267
|
+
getDelegateContractAddress(chainId);
|
|
5268
5268
|
const nonce = await spiceflowCoreTest.getAccountNonce(
|
|
5269
5269
|
address,
|
|
5270
5270
|
client
|
|
5271
5271
|
);
|
|
5272
5272
|
const auth = await actions.signAuthorization({
|
|
5273
|
-
contractAddress:
|
|
5273
|
+
contractAddress: address,
|
|
5274
|
+
// smart account address
|
|
5274
5275
|
chainId,
|
|
5275
5276
|
nonce: Number(nonce)
|
|
5276
5277
|
});
|
|
@@ -5286,7 +5287,8 @@ const DepositWidget = ({
|
|
|
5286
5287
|
signatureType: "ecdsa",
|
|
5287
5288
|
signature,
|
|
5288
5289
|
nbf: 0,
|
|
5289
|
-
exp:
|
|
5290
|
+
exp: Math.floor(Date.now() / 1e3) + 60 * 10,
|
|
5291
|
+
// 10 minutes from now
|
|
5290
5292
|
chainBatches: hashedChainBatches.map((b) => ({
|
|
5291
5293
|
hash: b.hash,
|
|
5292
5294
|
chainId: b.chainId,
|
package/dist/index.js
CHANGED
|
@@ -5262,13 +5262,14 @@ const DepositWidget = ({
|
|
|
5262
5262
|
const authorizations = [];
|
|
5263
5263
|
for (const chainId of uniqueChainIds) {
|
|
5264
5264
|
const client = getClientForChain(chainId);
|
|
5265
|
-
|
|
5265
|
+
getDelegateContractAddress(chainId);
|
|
5266
5266
|
const nonce = await getAccountNonce(
|
|
5267
5267
|
address,
|
|
5268
5268
|
client
|
|
5269
5269
|
);
|
|
5270
5270
|
const auth = await actions.signAuthorization({
|
|
5271
|
-
contractAddress:
|
|
5271
|
+
contractAddress: address,
|
|
5272
|
+
// smart account address
|
|
5272
5273
|
chainId,
|
|
5273
5274
|
nonce: Number(nonce)
|
|
5274
5275
|
});
|
|
@@ -5284,7 +5285,8 @@ const DepositWidget = ({
|
|
|
5284
5285
|
signatureType: "ecdsa",
|
|
5285
5286
|
signature,
|
|
5286
5287
|
nbf: 0,
|
|
5287
|
-
exp:
|
|
5288
|
+
exp: Math.floor(Date.now() / 1e3) + 60 * 10,
|
|
5289
|
+
// 10 minutes from now
|
|
5288
5290
|
chainBatches: hashedChainBatches.map((b) => ({
|
|
5289
5291
|
hash: b.hash,
|
|
5290
5292
|
chainId: b.chainId,
|