receive function transaction

pull/5370/head
aniket-engg 5 years ago
parent 0480230ca8
commit 5b9d65996a
  1. 22
      remix-lib/src/execution/txListener.js

@ -291,12 +291,22 @@ class TxListener {
return this._resolvedTransactions[tx.hash]
}
}
// fallback function
this._resolvedTransactions[tx.hash] = {
contractName: contractName,
to: tx.to,
fn: '(fallback)',
params: null
// receive function
if(!inputData && txHelper.getReceiveInterface(abi)){
this._resolvedTransactions[tx.hash] = {
contractName: contractName,
to: tx.to,
fn: '(receive)',
params: null
}
} else {
// fallback function
this._resolvedTransactions[tx.hash] = {
contractName: contractName,
to: tx.to,
fn: '(fallback)',
params: null
}
}
} else {
const bytecode = contract.object.evm.bytecode.object

Loading…
Cancel
Save