receive function transaction

pull/7/head
aniket-engg 5 years ago
parent 2f6180b0f8
commit 90220b8b3f
  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