quickfixes for payable and receive

pull/4031/head
aniket-engg 1 year ago committed by Aniket
parent 4d7a1a6183
commit 8f38d41916
  1. 16
      libs/remix-ui/editor/src/lib/providers/quickfixes.ts

@ -170,5 +170,21 @@ export default {
title: "Add 'calldata' to param",
message: ' calldata '
}
],
'SyntaxError: No visibility specified. Did you intend to add "external': [
{
id: 12,
title: "Add visibility 'external'",
message: 'external ',
nodeType: 'FunctionDefinition'
}
],
'DeclarationError: Receive ether function must be payable, but is "nonpayable".': [
{
id: 13,
title: "Make function 'payable'",
message: 'payable ',
nodeType: 'FunctionDefinition'
}
]
}

Loading…
Cancel
Save