Commit 8301c88c authored by aniket-engg's avatar aniket-engg

linting fix & comments

parent 90220b8b
......@@ -292,7 +292,7 @@ class TxListener {
}
}
// receive function
if(!inputData && txHelper.getReceiveInterface(abi)){
if (!inputData && txHelper.getReceiveInterface(abi)) {
this._resolvedTransactions[tx.hash] = {
contractName: contractName,
to: tx.to,
......
......@@ -249,9 +249,9 @@ tape('test fallback & receive function', function (t) {
let output = compiler.compile(compilerInput(fallbackAndReceiveFunction))
output = JSON.parse(output)
const contract = output.contracts['test.sol']['fallbackAndReceiveFunctionContract']
st.equal(txHelper.encodeFunctionId(contract.abi[2]), '0x')
st.equal(txHelper.encodeFunctionId(contract.abi[2]), '0x') // for receive function
st.equal(txHelper.encodeFunctionId(contract.abi[1]), '0x805da4ad')
st.equal(txHelper.encodeFunctionId(contract.abi[0]), '0x')
st.equal(txHelper.encodeFunctionId(contract.abi[0]), '0x') // for fallback function
})
})
......
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