Skip to content

Commit

Permalink
changes to migrate-certificates.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
amiecorso committed Mar 6, 2024
1 parent dba20a2 commit dfc5e47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/migrate-certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const validateMigrateEvents = ({
}[] = parseTransactionLogs({
contractInstance: removalContract,
txReceipt: txResult,
eventNames: ['Migrate'],
eventNames: ['Retire'],
}).map((log) => ({
certificateId: log.args.certificateId.toNumber(),
removalAmounts: log.args.removalAmounts.map((a: BigNumber) =>
Expand Down Expand Up @@ -503,7 +503,7 @@ export const GET_MIGRATE_CERTIFICATES_TASK = () =>
)
.div(1_000_000)
.toString();
return removalContract.interface.encodeFunctionData('migrate', [
return removalContract.interface.encodeFunctionData('retire', [
ids,
amounts,
recipient,
Expand Down Expand Up @@ -588,7 +588,7 @@ export const GET_MIGRATE_CERTIFICATES_TASK = () =>
tokenIds = parseTransactionLogs({
contractInstance: removalContract,
txReceipt,
eventNames: ['Migrate'],
eventNames: ['Retire'],
}).map((log) => log.args.certificateId.toNumber());
if (tokenIds.length !== batch.length) {
throw new Error(
Expand Down

0 comments on commit dfc5e47

Please sign in to comment.