|
|
|
@ -370,11 +370,13 @@ function Compiler (handleImportCall) { |
|
|
|
|
} |
|
|
|
|
return version |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function updateInterface (data) { |
|
|
|
|
txHelper.visitContracts(data.contracts, (contract) => { |
|
|
|
|
if (!contract.object.abi) contract.object.abi = [] |
|
|
|
|
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({ |
|
|
|
|
'payablepayable': true, |
|
|
|
|
'stateMutability': 'payable', |
|
|
|
|