File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
apps/remix-ide/src/blockchain
remix-ui/terminal/src/lib/components Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ const _paq = window._paq = window._paq || []
77
88let web3
99
10+ const config = { defaultTransactionType : '0x0' }
1011if ( typeof window !== 'undefined' && typeof window . ethereum !== 'undefined' ) {
1112 var injectedProvider = window . ethereum
1213 web3 = new Web3 ( injectedProvider )
1314} else {
1415 web3 = new Web3 ( new Web3 . providers . HttpProvider ( 'http://localhost:8545' ) )
1516}
17+ web3 . eth . setConfig ( config )
1618
1719/*
1820 trigger contextChanged, web3EndpointChanged
@@ -59,6 +61,7 @@ export class ExecutionContext {
5961 }
6062
6163 setWeb3 ( context , web3 ) {
64+ web3 . setConfig ( config )
6265 this . customWeb3 [ context ] = web3
6366 }
6467
Original file line number Diff line number Diff line change @@ -11,12 +11,14 @@ const providerConfig = {
1111 blockNumber : global . blockNumber || null
1212}
1313
14+ const config = { defaultTransactionType : '0x0' }
1415global . remixProvider = new Provider ( providerConfig )
1516global . remixProvider . init ( )
1617global . web3Provider = new ethers . providers . Web3Provider ( global . remixProvider )
1718global . provider = global . web3Provider
1819global . ethereum = global . web3Provider
1920global . web3 = new Web3 ( global . web3Provider )
21+ global . web3 . eth . setConfig ( config )
2022
2123const isFactoryOptions = ( signerOrOptions : any ) => {
2224 if ( ! signerOrOptions || signerOrOptions === undefined || signerOrOptions instanceof ethers . Signer ) return false
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class TxRunnerWeb3 {
2323 // this is to avoid the following issue: https://github.com/MetaMask/metamask-extension/issues/11824
2424 tx . type = '0x2'
2525 } else {
26- tx . type = '0x1'
26+ // tx.type = '0x1'
2727 }
2828 if ( txFee ) {
2929 if ( txFee . baseFeePerGas ) {
@@ -81,7 +81,7 @@ export class TxRunnerWeb3 {
8181 )
8282 } else {
8383 try {
84- const res = await this . getWeb3 ( ) . eth . sendTransaction ( tx )
84+ const res = await this . getWeb3 ( ) . eth . sendTransaction ( tx , null , { checkRevertBeforeSending : false } )
8585 cb ( null , res . transactionHash )
8686 } catch ( e ) {
8787 console . log ( `Send transaction failed: ${ e . message } . if you use an injected provider, please check it is properly unlocked. ` )
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ const showTable = (opts, showTableHash) => {
7575 < FormattedMessage id = "terminal.blockNumber" />
7676 </ td >
7777 < td className = "remix_ui_terminal_td" data-id = { `txLoggerTableContractAddress${ opts . hash } ` } data-shared = { `pair_${ opts . hash } ` } >
78- { opts . blockNumber }
79- < CopyToClipboard content = { opts . blockNumber } />
78+ { opts . blockNumber . toString ( ) }
79+ < CopyToClipboard content = { opts . blockNumber . toString ( ) } />
8080 </ td >
8181 </ tr >
8282 ) : null }
You can’t perform that action at this time.
0 commit comments