Skip to content

Commit

Permalink
ci: versions, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ethzoomer committed Jun 26, 2024
1 parent b333346 commit 8a62609
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion contracts/LpSugar.vy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BUSL-1.1
# @version >=0.3.6 <0.4.0
# @version ^0.3.10

# @title Velodrome Finance LP Sugar v3
# @author stas, ethzoomer
Expand Down
2 changes: 1 addition & 1 deletion contracts/RelaySugar.vy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BUSL-1.1
# @version >=0.3.6 <0.4.0
# @version ^0.3.10

# @title Velodrome Finance Relay Sugar v2
# @author stas, ZoomerAnon
Expand Down
2 changes: 1 addition & 1 deletion contracts/VeSugar.vy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BUSL-1.1
# @version >=0.3.6 <0.4.0
# @version ^0.3.10

# @title Velodrome Finance veNFT Sugar v2
# @author stas
Expand Down
14 changes: 7 additions & 7 deletions tests/test_govnft_sugar.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_byId(sugar_contract, GovNftStruct):
)

assert govnft is not None
assert len() == 15
assert len(govnft) == 15
assert govnft.minter != ADDRESS_ZERO
assert govnft.address != ADDRESS_ZERO

Expand All @@ -50,7 +50,7 @@ def test_collections(sugar_contract, CollectionStruct):
))

assert collections is not None
assert len(collections) > 1
assert len(collections) > 0
assert collections[0].address == os.getenv('GOVNFT_COLLECTION_ADDRESS')


Expand All @@ -62,12 +62,12 @@ def test_owned(sugar_contract, GovNftStruct):
assert govnft is not None

owned_govnfts = list(map(
lambda _p: CollectionStruct(*_p),
lambda _p: GovNftStruct(*_p),
sugar_contract.owned(govnft.owner, govnft.address)
))

assert owned_govnfts is not None
assert len(owned_govnfts) > 1
assert len(owned_govnfts) > 0
owned_govnft = owned_govnfts[0]

assert owned_govnft.owner == govnft.owner
Expand All @@ -82,12 +82,12 @@ def test_minted(sugar_contract, GovNftStruct):
assert govnft is not None

minted_govnfts = list(map(
lambda _p: CollectionStruct(*_p),
sugar_contract.minted(govnft.owner, govnft.address)
lambda _p: GovNftStruct(*_p),
sugar_contract.minted(govnft.minter, govnft.address)
))

assert minted_govnfts is not None
assert len(minted_govnfts) > 1
assert len(minted_govnfts) > 0
minted_govnft = minted_govnfts[0]

assert minted_govnft.owner == govnft.owner
Expand Down

0 comments on commit 8a62609

Please sign in to comment.