Unverified Commit 26e6991c authored by yann300's avatar yann300 Committed by GitHub

comment

parent bb82e328
...@@ -370,11 +370,13 @@ function Compiler (handleImportCall) { ...@@ -370,11 +370,13 @@ function Compiler (handleImportCall) {
} }
return version return version
} }
function updateInterface (data) { function updateInterface (data) {
txHelper.visitContracts(data.contracts, (contract) => { txHelper.visitContracts(data.contracts, (contract) => {
if (!contract.object.abi) contract.object.abi = [] if (!contract.object.abi) contract.object.abi = []
if (language === 'Yul' && contract.object.abi.length === 0) { if (language === 'Yul' && contract.object.abi.length === 0) {
// yul compiler does not return any abi,
// we default to accept the fallback function (which expect raw data as argument).
contract.object.abi.push({ contract.object.abi.push({
'payablepayable': true, 'payablepayable': true,
'stateMutability': 'payable', 'stateMutability': 'payable',
......
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