Define default value for ast

pull/2260/head
David Disu 3 years ago
parent 0ccca78d67
commit 8a1ef2eca4
  1. 2
      libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts

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

Loading…
Cancel
Save