linting fix & comments

pull/7/head
aniket-engg 5 years ago
parent 90220b8b3f
commit 8301c88cf2
  1. 2
      remix-lib/src/execution/txListener.js
  2. 4
      remix-lib/test/txFormat.js

@ -292,7 +292,7 @@ class TxListener {
} }
} }
// receive function // receive function
if(!inputData && txHelper.getReceiveInterface(abi)){ if (!inputData && txHelper.getReceiveInterface(abi)) {
this._resolvedTransactions[tx.hash] = { this._resolvedTransactions[tx.hash] = {
contractName: contractName, contractName: contractName,
to: tx.to, to: tx.to,

@ -249,9 +249,9 @@ tape('test fallback & receive function', function (t) {
let output = compiler.compile(compilerInput(fallbackAndReceiveFunction)) let output = compiler.compile(compilerInput(fallbackAndReceiveFunction))
output = JSON.parse(output) output = JSON.parse(output)
const contract = output.contracts['test.sol']['fallbackAndReceiveFunctionContract'] 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[1]), '0x805da4ad')
st.equal(txHelper.encodeFunctionId(contract.abi[0]), '0x') st.equal(txHelper.encodeFunctionId(contract.abi[0]), '0x') // for fallback function
}) })
}) })

Loading…
Cancel
Save