A Passport issuer can burn Quadrata Passports for attributes they have issued themselves by calling the on-chain function burnPassportsIssuer in the QuadPassport.sol smart contract
Copy function burnPassportsIssuer (
address _account
) external ;
Copy import { ethers } from 'ethers' ;
QUAD_PASSPORT_ADDRESS = "0x2e779749c40CC4Ba1cAB4c57eF84d90755CC017d" ;
QUAD_PASSPORT_ABI = ""; // ABI is available at https://github.com/QuadrataNetwork/passport-contracts/blob/develop/abis/QuadPassport.json
SIGNER_PRIVATE_KEY = "" ; // Private key of the Signer
const burnPassportsIssuer = async (walletAddress) => {
const signer = new Wallet ( SIGNER_PRIVATE_KEY );
// Instantiate passport contract object
const passportContract = new ethers .Contract (
passportAddress ,
QUADRATA_PASSPORT_ABI ,
signer ,
);
await passportContract .burnPassportIssuers (walletAddress);
};