pull/5370/head
yann300 6 years ago committed by GitHub
parent 3417f75ea1
commit f47a624fc8
  1. 2
      remix-solidity/src/compiler/compiler.js

@ -375,6 +375,8 @@ function Compiler (handleImportCall) {
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',

Loading…
Cancel
Save