@@ -199,11 +199,9 @@ const sendTransaction$2 = async ({ transaction, wallet })=> {
199199} ;
200200
201201const retrieveConfirmedTransaction$2 = ( sentTransaction ) => {
202- console . log ( 'retrieveConfirmedTransaction' , sentTransaction ) ;
203202 return new Promise ( ( resolve , reject ) => {
204203 try {
205204 sentTransaction . wait ( 1 ) . then ( resolve ) . catch ( ( error ) => {
206- console . log ( 'error' , error ) ;
207205 if (
208206 ( error && _optionalChain$p ( [ error , 'optionalAccess' , _ => _ . stack , 'optionalAccess' , _2 => _2 . match , 'call' , _3 => _3 ( 'JSON-RPC error' ) ] ) ) ||
209207 ( error && error . toString ( ) . match ( 'undefined' ) )
@@ -218,7 +216,6 @@ const retrieveConfirmedTransaction$2 = (sentTransaction)=>{
218216 }
219217 } ) ;
220218 } catch ( error ) {
221- console . log ( 'ERROR' , error ) ;
222219 if (
223220 ( error && _optionalChain$p ( [ error , 'optionalAccess' , _4 => _4 . stack , 'optionalAccess' , _5 => _5 . match , 'call' , _6 => _6 ( 'JSON-RPC error' ) ] ) ) ||
224221 ( error && error . toString ( ) . match ( 'undefined' ) )
@@ -2008,8 +2005,7 @@ class WorldApp {
20082005 transaction . nonce = ( await this . transactionCount ( { blockchain : 'worldchain' , address : transaction . from } ) ) . toString ( ) ;
20092006 transaction . fromBlock = await request ( 'worldchain://latestBlockNumber' ) ;
20102007
2011- MiniKit . subscribe ( ResponseEvent . MiniAppSendTransaction , ( payload , finalPayload ) => {
2012- console . log ( 'payload' , payload ) ;
2008+ MiniKit . subscribe ( ResponseEvent . MiniAppSendTransaction , ( payload ) => {
20132009 MiniKit . unsubscribe ( ResponseEvent . MiniAppSendTransaction ) ;
20142010 if ( payload . status == "success" ) {
20152011 if ( transaction . accepted ) { transaction . accepted ( ) ; }
@@ -2024,7 +2020,7 @@ class WorldApp {
20242020 reject ( 'Submitting transaction failed!' ) ;
20252021 }
20262022 } ) ;
2027- console . log ( ' sendTransaction' , {
2023+ MiniKit . commands . sendTransaction ( {
20282024 transaction : [
20292025 {
20302026 address : transaction . to ,
@@ -2035,17 +2031,6 @@ class WorldApp {
20352031 ] ,
20362032 permit2 : [ _optionalChain$1 ( [ transaction , 'access' , _13 => _13 . params , 'optionalAccess' , _14 => _14 . permit2 ] ) ]
20372033 } ) ;
2038- MiniKit . commands . sendTransaction ( {
2039- transaction : [
2040- {
2041- address : transaction . to ,
2042- abi : _optionalChain$1 ( [ transaction , 'access' , _15 => _15 . api , 'optionalAccess' , _16 => _16 . filter , 'call' , _17 => _17 ( ( fragment ) => fragment . name === transaction . method && _optionalChain$1 ( [ fragment , 'optionalAccess' , _18 => _18 . inputs , 'optionalAccess' , _19 => _19 . length ] ) === _optionalChain$1 ( [ transaction , 'access' , _20 => _20 . params , 'optionalAccess' , _21 => _21 . args , 'optionalAccess' , _22 => _22 . length ] ) ) ] ) ,
2043- functionName : transaction . method ,
2044- args : _optionalChain$1 ( [ transaction , 'access' , _23 => _23 . params , 'optionalAccess' , _24 => _24 . args ] )
2045- } ,
2046- ] ,
2047- permit2 : [ _optionalChain$1 ( [ transaction , 'access' , _25 => _25 . params , 'optionalAccess' , _26 => _26 . permit2 ] ) ]
2048- } ) ;
20492034 } )
20502035 }
20512036
@@ -2066,8 +2051,8 @@ class WorldApp {
20662051 } ) . then ( ( response ) => {
20672052 if ( response . ok ) {
20682053 response . json ( ) . then ( ( transactionJSON ) => {
2069- if ( _optionalChain$1 ( [ transactionJSON , 'optionalAccess' , _27 => _27 . external_id ] ) ) {
2070- resolve ( _optionalChain$1 ( [ transactionJSON , 'optionalAccess' , _28 => _28 . external_id ] ) ) ;
2054+ if ( _optionalChain$1 ( [ transactionJSON , 'optionalAccess' , _15 => _15 . external_id ] ) ) {
2055+ resolve ( _optionalChain$1 ( [ transactionJSON , 'optionalAccess' , _16 => _16 . external_id ] ) ) ;
20712056 } else {
20722057 resolve ( ) ;
20732058 }
@@ -2163,7 +2148,7 @@ class WorldApp {
21632148 if ( localStorage . getItem ( STORAGE_KEY ) ) {
21642149 return localStorage . getItem ( STORAGE_KEY )
21652150 }
2166- return ( _optionalChain$1 ( [ window , 'access' , _29 => _29 . MiniKit , 'access' , _30 => _30 . user , 'optionalAccess' , _31 => _31 . walletAddress ] ) || _optionalChain$1 ( [ MiniKit , 'access' , _32 => _32 . user , 'optionalAccess' , _33 => _33 . walletAddress ] ) )
2151+ return ( _optionalChain$1 ( [ window , 'access' , _17 => _17 . MiniKit , 'access' , _18 => _18 . user , 'optionalAccess' , _19 => _19 . walletAddress ] ) || _optionalChain$1 ( [ MiniKit , 'access' , _20 => _20 . user , 'optionalAccess' , _21 => _21 . walletAddress ] ) )
21672152 }
21682153
21692154 connect ( ) {
0 commit comments