Skip to content

Commit

Permalink
Fix test due to incompatability in Cadence v0.42 vs v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fxamacker committed Apr 23, 2024
1 parent 37a05aa commit c49d24a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ func TestFilterUnreferencedSlabs(t *testing.T) {
testAddress,
)

dict2.InsertWithoutTransfer(
// NOTE: InsertWithoutTransfer isn't available in Cadence v0.42.
// Number of payloads is increased by 1 by using Insert().
dict2.Insert(
inter, interpreter.EmptyLocationRange,
interpreter.NewUnmeteredIntValueFromInt64(2),
interpreter.NewArrayValue(
Expand Down Expand Up @@ -132,7 +134,9 @@ func TestFilterUnreferencedSlabs(t *testing.T) {
oldPayloads = append(oldPayloads, payload)
}

const totalSlabCount = 5
// NOTE: InsertWithoutTransfer isn't available in Cadence v0.42.
// Number of payloads is increased by 1 by using Insert().
const totalSlabCount = 6

require.Len(t, oldPayloads, totalSlabCount)

Expand Down

0 comments on commit c49d24a

Please sign in to comment.