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

receive function transaction

parent 2f6180b0
...@@ -291,6 +291,15 @@ class TxListener { ...@@ -291,6 +291,15 @@ class TxListener {
return this._resolvedTransactions[tx.hash] return this._resolvedTransactions[tx.hash]
} }
} }
// receive function
if(!inputData && txHelper.getReceiveInterface(abi)){
this._resolvedTransactions[tx.hash] = {
contractName: contractName,
to: tx.to,
fn: '(receive)',
params: null
}
} else {
// fallback function // fallback function
this._resolvedTransactions[tx.hash] = { this._resolvedTransactions[tx.hash] = {
contractName: contractName, contractName: contractName,
...@@ -298,6 +307,7 @@ class TxListener { ...@@ -298,6 +307,7 @@ class TxListener {
fn: '(fallback)', fn: '(fallback)',
params: null params: null
} }
}
} else { } else {
const bytecode = contract.object.evm.bytecode.object const bytecode = contract.object.evm.bytecode.object
let params = null let params = null
......
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