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

receive function transaction

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