diff --git a/web3.js/src/connection.ts b/web3.js/src/connection.ts index f572c9d581..4897521087 100644 --- a/web3.js/src/connection.ts +++ b/web3.js/src/connection.ts @@ -4048,11 +4048,6 @@ export class Connection { let logs; if ('data' in res.error) { logs = res.error.data.logs; - if (logs && Array.isArray(logs)) { - const traceIndent = '\n '; - const logTrace = traceIndent + logs.join(traceIndent); - console.error(res.error.message, logTrace); - } } throw new SendTransactionError( 'failed to send transaction: ' + res.error.message,