Skip to content

Commit

Permalink
broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkline committed Dec 22, 2023
1 parent 7b3716e commit 9eaf2f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/FlowtyWrapped_tests.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,11 @@ pub fun testDrawRaffle() {
let createEvent = (Test.eventsOfType(Type<FlowtyRaffles.RaffleCreated>()).removeLast() as! FlowtyRaffles.RaffleCreated)

setupForMint(acct: acct, name: username)
let entries: AnyStruct = scriptExecutor("raffle/get_raffle_entries.cdc", [minterAccount.address, createEvent.raffleID])
let castedEntries = entries! as! [AnyStruct]
let entries: AnyStruct = scriptExecutor("raffle/get_raffle_entries.cdc", [minterAccount.address, createEvent.raffleID])!
let castedEntries = entries as! [AnyStruct]

assert(castedEntries.length >= 1, message: "no entries")
assert(castedEntries.removeLast() as! Address == acct.address)
assert(castedEntries[castedEntries.length - 1] as! Address == acct.address)

let drawing = drawFromRaffle(rafflesAcct, createEvent.raffleID)

Expand Down

0 comments on commit 9eaf2f1

Please sign in to comment.