Merge pull request #4083 from ethereum/adddecode

add decode
pull/5370/head
bunsenstraat 1 year ago committed by GitHub
commit bb563e47ef
  1. 8
      libs/remix-ui/editor/src/lib/providers/completion/completionGlobals.ts

@ -293,6 +293,14 @@ export function getAbiCompletionItems(range: monacoTypes.IRange, monaco): monaco
label: 'encodeWithSignature',
range
},
{
label: 'decode',
kind: monaco.languages.CompletionItemKind.Method,
insertText: 'decode(${1:arg}, ${2:arg});',
insertTextRules: monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet,
detail: 'decode(bytes encodedData, (...)) returns (...): ABI-decodes the given arguments from the given encodedData',
range
}
];
}

Loading…
Cancel
Save