Skip to content

Commit

Permalink
fix: removeAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
amaurymagalhaes committed Dec 5, 2024
1 parent 4142351 commit 38e8347
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/class/contract/GapContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ class GapContract {
*/
static async isProjectOwner(signer, projectUID, projectChainId, publicAddress) {
const contract = await GAP_1.GAP.getProjectResolver(signer, projectChainId);
const address = publicAddress || await this.getSignerAddress(signer);
const address = publicAddress || (await this.getSignerAddress(signer));
const isOwner = await contract.isOwner(projectUID, address);
return isOwner;
}
Expand All @@ -244,7 +244,7 @@ class GapContract {
*/
static async isProjectAdmin(signer, projectUID, projectChainId, publicAddress) {
const contract = await GAP_1.GAP.getProjectResolver(signer, projectChainId);
const address = publicAddress || await this.getSignerAddress(signer);
const address = publicAddress || (await this.getSignerAddress(signer));
const isAdmin = await contract.isAdmin(projectUID, address);
return isAdmin;
}
Expand Down Expand Up @@ -277,7 +277,7 @@ class GapContract {
*/
static async removeProjectAdmin(signer, projectUID, oldAdmin) {
const contract = await GAP_1.GAP.getProjectResolver(signer);
const tx = await contract.addAdmin(projectUID, oldAdmin);
const tx = await contract.removeAdmin(projectUID, oldAdmin);
return tx.wait?.();
}
}
Expand Down

0 comments on commit 38e8347

Please sign in to comment.