quickfixes for payable and receive

pull/5370/head
aniket-engg 1 year ago committed by Aniket
parent db6752c455
commit 8c8d11d8e3
  1. 16
      libs/remix-ui/editor/src/lib/providers/quickfixes.ts

@ -170,5 +170,21 @@ export default {
title: "Add 'calldata' to param", title: "Add 'calldata' to param",
message: ' calldata ' 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