Skip to content

Commit

Permalink
feat: upgradeable erc20 erc1967
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio committed Mar 21, 2023
1 parent c7b4d34 commit 84dd3a1
Show file tree
Hide file tree
Showing 5 changed files with 974 additions and 2,455 deletions.
2 changes: 1 addition & 1 deletion dist/services/classes/Contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Contract extends _BcThing.BcThing {
let { interfaces, methods } = info;

if (!interfaces.length) {// if no interfaces... double check
const proxyCheckResult = await this.parser.getContractInfoIfProxy(this.address);
const proxyCheckResult = await this.parser.getEIP1967Info(this.address);
// if proxy detected, the implementation contract interfaces are used
if (proxyCheckResult && proxyCheckResult.interfaces.length) {
interfaces = proxyCheckResult.interfaces;
Expand Down
Loading

0 comments on commit 84dd3a1

Please sign in to comment.