Define default value for ast

pull/5370/head
David Disu 3 years ago
parent 6512965f77
commit 41451aabf6
  1. 2
      libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts

@ -16,7 +16,7 @@ export class OpenZeppelinProxy extends Plugin {
this.blockchain = blockchain
}
async isConcerned(ast: ContractAST) {
async isConcerned(ast: ContractAST = {} as ContractAST) {
// check in the AST if it's an upgradable contract
if (ast.nodes && ast.nodes.find(node => node.absolutePath === UUPS)) {
this.kind = 'UUPS'

Loading…
Cancel
Save