@depay/web3-wallets-svm 18.1.10 → 18.1.12
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/esm/index.evm.js +2 -4
- package/dist/esm/index.js +2 -4
- package/dist/umd/index.evm.js +2 -4
- package/dist/umd/index.js +2 -4
- package/package.json +1 -1
package/dist/esm/index.evm.js
CHANGED
|
@@ -2002,7 +2002,6 @@ class WorldApp {
|
|
|
2002
2002
|
|
|
2003
2003
|
return new Promise(async(resolve, reject)=>{
|
|
2004
2004
|
await transaction.prepare({ wallet: this });
|
|
2005
|
-
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2006
2005
|
transaction.fromBlock = await request('worldchain://latestBlockNumber');
|
|
2007
2006
|
|
|
2008
2007
|
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
@@ -2104,11 +2103,10 @@ class WorldApp {
|
|
|
2104
2103
|
fetchTransaction(transaction, payload, attempt = 1) {
|
|
2105
2104
|
return new Promise((resolve, reject)=>{
|
|
2106
2105
|
|
|
2107
|
-
Promise.
|
|
2106
|
+
Promise.race([
|
|
2108
2107
|
this.pollTransactionIdFromWorldchain(payload),
|
|
2109
2108
|
this.pollEventForUserOp(transaction, payload),
|
|
2110
|
-
]).then((
|
|
2111
|
-
let transactionHash = results ? results.filter(Boolean)[0] : undefined;
|
|
2109
|
+
]).then((transactionHash)=>{
|
|
2112
2110
|
if(transactionHash) {
|
|
2113
2111
|
transaction.id = transactionHash;
|
|
2114
2112
|
transaction.url = Blockchains['worldchain'].explorerUrlFor({ transaction });
|
package/dist/esm/index.js
CHANGED
|
@@ -2603,7 +2603,6 @@ class WorldApp {
|
|
|
2603
2603
|
|
|
2604
2604
|
return new Promise(async(resolve, reject)=>{
|
|
2605
2605
|
await transaction.prepare({ wallet: this });
|
|
2606
|
-
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2607
2606
|
transaction.fromBlock = await request('worldchain://latestBlockNumber');
|
|
2608
2607
|
|
|
2609
2608
|
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
@@ -2705,11 +2704,10 @@ class WorldApp {
|
|
|
2705
2704
|
fetchTransaction(transaction, payload, attempt = 1) {
|
|
2706
2705
|
return new Promise((resolve, reject)=>{
|
|
2707
2706
|
|
|
2708
|
-
Promise.
|
|
2707
|
+
Promise.race([
|
|
2709
2708
|
this.pollTransactionIdFromWorldchain(payload),
|
|
2710
2709
|
this.pollEventForUserOp(transaction, payload),
|
|
2711
|
-
]).then((
|
|
2712
|
-
let transactionHash = results ? results.filter(Boolean)[0] : undefined;
|
|
2710
|
+
]).then((transactionHash)=>{
|
|
2713
2711
|
if(transactionHash) {
|
|
2714
2712
|
transaction.id = transactionHash;
|
|
2715
2713
|
transaction.url = Blockchains['worldchain'].explorerUrlFor({ transaction });
|
package/dist/umd/index.evm.js
CHANGED
|
@@ -2006,7 +2006,6 @@
|
|
|
2006
2006
|
|
|
2007
2007
|
return new Promise(async(resolve, reject)=>{
|
|
2008
2008
|
await transaction.prepare({ wallet: this });
|
|
2009
|
-
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2010
2009
|
transaction.fromBlock = await web3ClientEvm.request('worldchain://latestBlockNumber');
|
|
2011
2010
|
|
|
2012
2011
|
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
@@ -2108,11 +2107,10 @@
|
|
|
2108
2107
|
fetchTransaction(transaction, payload, attempt = 1) {
|
|
2109
2108
|
return new Promise((resolve, reject)=>{
|
|
2110
2109
|
|
|
2111
|
-
Promise.
|
|
2110
|
+
Promise.race([
|
|
2112
2111
|
this.pollTransactionIdFromWorldchain(payload),
|
|
2113
2112
|
this.pollEventForUserOp(transaction, payload),
|
|
2114
|
-
]).then((
|
|
2115
|
-
let transactionHash = results ? results.filter(Boolean)[0] : undefined;
|
|
2113
|
+
]).then((transactionHash)=>{
|
|
2116
2114
|
if(transactionHash) {
|
|
2117
2115
|
transaction.id = transactionHash;
|
|
2118
2116
|
transaction.url = Blockchains__default['default']['worldchain'].explorerUrlFor({ transaction });
|
package/dist/umd/index.js
CHANGED
|
@@ -2606,7 +2606,6 @@
|
|
|
2606
2606
|
|
|
2607
2607
|
return new Promise(async(resolve, reject)=>{
|
|
2608
2608
|
await transaction.prepare({ wallet: this });
|
|
2609
|
-
transaction.nonce = (await this.transactionCount({ blockchain: 'worldchain', address: transaction.from })).toString();
|
|
2610
2609
|
transaction.fromBlock = await web3Client.request('worldchain://latestBlockNumber');
|
|
2611
2610
|
|
|
2612
2611
|
MiniKit.subscribe(ResponseEvent.MiniAppSendTransaction, (payload)=> {
|
|
@@ -2708,11 +2707,10 @@
|
|
|
2708
2707
|
fetchTransaction(transaction, payload, attempt = 1) {
|
|
2709
2708
|
return new Promise((resolve, reject)=>{
|
|
2710
2709
|
|
|
2711
|
-
Promise.
|
|
2710
|
+
Promise.race([
|
|
2712
2711
|
this.pollTransactionIdFromWorldchain(payload),
|
|
2713
2712
|
this.pollEventForUserOp(transaction, payload),
|
|
2714
|
-
]).then((
|
|
2715
|
-
let transactionHash = results ? results.filter(Boolean)[0] : undefined;
|
|
2713
|
+
]).then((transactionHash)=>{
|
|
2716
2714
|
if(transactionHash) {
|
|
2717
2715
|
transaction.id = transactionHash;
|
|
2718
2716
|
transaction.url = Blockchains__default['default']['worldchain'].explorerUrlFor({ transaction });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depay/web3-wallets-svm",
|
|
3
3
|
"moduleName": "Web3Wallets",
|
|
4
|
-
"version": "18.1.
|
|
4
|
+
"version": "18.1.12",
|
|
5
5
|
"description": "One-Stop-Shop JavaScript library to integrate various web3 crypto wallets and multiple blockchains at once with a single interface.",
|
|
6
6
|
"main": "dist/umd/index.svm.js",
|
|
7
7
|
"module": "dist/esm/index.svm.js",
|