File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ access(all) contract NFTLocker {
7979 /// Determine if NFT can be unlocked
8080 ///
8181 access (all) view fun canUnlockToken (id : UInt64 , nftType : Type ): Bool {
82- if let lockedTokens = NFTLocker.lockedTokens[nftType] {
82+ if let lockedTokens = & NFTLocker.lockedTokens[nftType] as &{UInt64: NFTLocker.LockedData} ? {
8383 if let lockedToken = lockedTokens[id] {
8484 if lockedToken.lockedUntil < = UInt64 (getCurrentBlock ().timestamp) {
8585 return true
Original file line number Diff line number Diff line change 2020 "source" : " ./contracts/NFTLocker.cdc" ,
2121 "aliases" : {
2222 "emulator" : " f8d6e0586b0a20c7" ,
23+ "mainnet" : " b6f2481eba4df97b" ,
2324 "testnet" : " ef4cd3d07a7b43ce"
2425 }
2526 },
Original file line number Diff line number Diff line change 11.PHONY : test
22test :
3- go test ./...
3+ CGO_ENABLED=0 go test -tags=no_cgo ./...
44
55.PHONY : ci
66ci : test
You can’t perform that action at this time.
0 commit comments