Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NFT contract templates #83

Merged
merged 6 commits into from
Jun 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add test coverage for vault & collection config queries
  • Loading branch information
sisyphusSmiling committed Jun 7, 2024
commit 45f058fdee9369e82881b9c5e1b353d776ce26bd
12 changes: 12 additions & 0 deletions cadence/tests/flow_evm_bridge_tests.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,12 @@ fun testMintExampleNFTSucceeds() {
alice
)
Test.expect(setupCollectionResult, Test.beSucceeded())
let hasCollection = executeScript(
"../scripts/nft/has_collection_configured.cdc",
[exampleNFTIdentifier, alice.address]
)
Test.expect(hasCollection, Test.beSucceeded())
Test.assertEqual(true, hasCollection.returnValue as! Bool? ?? panic("Problem getting collection status"))

let mintExampleNFTResult = executeTransaction(
"../transactions/example-assets/example-nft/mint_nft.cdc",
Expand Down Expand Up @@ -440,6 +446,12 @@ fun testMintExampleTokenSucceeds() {
alice
)
Test.expect(setupVaultResult, Test.beSucceeded())
let hasVault = executeScript(
"../scripts/tokens/has_vault_configured.cdc",
[exampleTokenIdentifier, alice.address]
)
Test.expect(hasVault, Test.beSucceeded())
Test.assertEqual(true, hasVault.returnValue as! Bool? ?? panic("Problem getting vault status"))

let mintExampleTokenResult = executeTransaction(
"../transactions/example-assets/example-token/mint_tokens.cdc",
Expand Down
Loading