Skip to content

Commit

Permalink
fix: fixing assertion error at get asV101
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk committed Jun 6, 2024
1 parent 055136b commit 730d9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mappings/farms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ export async function farmUpdated(
let eventValue = item.event.args as v63.Farm
eventValue.dedicatedFarm = false
farmUpdatedEventParsed = farmUpdatedEvent.asV63
switch (farmUpdatedEvent.asV101.certification.__kind) {
switch (farmUpdatedEventParsed.certification.__kind) {
case "Gold": {
certification = FarmCertification.Gold
}
}
} else if (farmUpdatedEvent.isV101) {
farmUpdatedEventParsed = farmUpdatedEvent.asV101
switch (farmUpdatedEvent.asV101.certification.__kind) {
switch (farmUpdatedEventParsed.certification.__kind) {
case "Gold": {
certification = FarmCertification.Gold
}
Expand Down

0 comments on commit 730d9c2

Please sign in to comment.