Commit 90220b8b authored by aniket-engg's avatar aniket-engg

receive function transaction

parent 2f6180b0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment