@@ -92,17 +92,19 @@ export class TxRunnerWeb3 {
92
92
}
93
93
94
94
execute ( args : InternalTransaction , confirmationCb , gasEstimationForceSend , promptCb , callback ) {
95
+ console . log ( 'execute txRunnerWeb3--->' , args )
95
96
let data = args . data
96
97
if ( data . slice ( 0 , 2 ) !== '0x' ) {
97
98
data = '0x' + data
98
99
}
99
100
100
- return this . runInNode ( args . from , args . to , data , args . value , args . gasLimit , args . useCall , args . timestamp , confirmationCb , gasEstimationForceSend , promptCb , callback )
101
+ return this . runInNode ( args . from , args . fromSmartAccount , args . to , data , args . value , args . gasLimit , args . useCall , args . timestamp , confirmationCb , gasEstimationForceSend , promptCb , callback )
101
102
}
102
103
103
- runInNode ( from , to , data , value , gasLimit , useCall , timestamp , confirmCb , gasEstimationForceSend , promptCb , callback ) {
104
+ runInNode ( from , fromSmartAccount , to , data , value , gasLimit , useCall , timestamp , confirmCb , gasEstimationForceSend , promptCb , callback ) {
104
105
const tx = { from : from , to : to , data : data , value : value }
105
106
if ( ! from ) return callback ( 'the value of "from" is not defined. Please make sure an account is selected.' )
107
+ if ( fromSmartAccount ) return callback ( 'from address is from a smart account' )
106
108
if ( useCall ) {
107
109
if ( this . _api && this . _api . isVM ( ) ) {
108
110
( this . getWeb3 ( ) as any ) . remix . registerCallId ( timestamp )
0 commit comments