Skip to content

Commit

Permalink
remove project validation from anchor contract
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosQ96 committed Dec 21, 2024
1 parent abd66dd commit 0cce839
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/resolvers/anchorContractAddressResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@ export class AnchorContractAddressResolver {

const iface = new ethers.utils.Interface(abi);
const decodedData = iface.parseTransaction({ data: networkData.data });
const txProjectId = decodedData.args[1];
if (Number(txProjectId) !== projectId) {
logger.debug('txProjectId odoes not match the project id', {
txProjectId,
projectId,
});
throw new Error(i18n.__(translationErrorMessagesKeys.INVALID_PROJECT_ID));
}
const profileOwnerWalletAddress = decodedData.args[3];
if (
profileOwnerWalletAddress.toLowerCase() !==
Expand Down

0 comments on commit 0cce839

Please sign in to comment.