File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export class VerifyCaptcha {
1717 const data = response ?. data ;
1818
1919 if ( data ?. success ) {
20- if ( data ?. score > 0.6 ) {
20+ if ( data ?. score >= 0.3 ) {
2121 return true ;
2222 }
2323 }
Original file line number Diff line number Diff line change @@ -156,7 +156,14 @@ export default class EVM {
156156 this . pendingTxNonces . delete ( nonce ) ;
157157 } catch ( err : any ) {
158158 console . log ( err . message ) ;
159- console . log ( `Error with nonce ${ nonce } while sending signed transaction.` ) ;
159+ console . log ( `Error with nonce ${ nonce } while sending signed transaction on ${ this . NAME } .` ) ;
160+ if ( err . message . includes ( "nonce too low" ) ) {
161+ console . log ( `Nonce too low: Dropping transaction with nonce ${ nonce } on ${ this . NAME } ` )
162+ this . pendingTxNonces . delete ( nonce ) ;
163+ } else {
164+ console . log ( "Re-sending tx to faucet address" ) ;
165+ this . sendTokenUtil ( 0 , this . account . address , nonce )
166+ }
160167 }
161168 }
162169
You can’t perform that action at this time.
0 commit comments