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 {
79
79
/// Determine if NFT can be unlocked
80
80
///
81
81
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} ? {
83
83
if let lockedToken = lockedTokens[id] {
84
84
if lockedToken.lockedUntil < = UInt64 (getCurrentBlock ().timestamp) {
85
85
return true
Original file line number Diff line number Diff line change 20
20
"source" : " ./contracts/NFTLocker.cdc" ,
21
21
"aliases" : {
22
22
"emulator" : " f8d6e0586b0a20c7" ,
23
+ "mainnet" : " b6f2481eba4df97b" ,
23
24
"testnet" : " ef4cd3d07a7b43ce"
24
25
}
25
26
},
Original file line number Diff line number Diff line change 1
1
.PHONY : test
2
2
test :
3
- go test ./...
3
+ CGO_ENABLED=0 go test -tags=no_cgo ./...
4
4
5
5
.PHONY : ci
6
6
ci : test
You can’t perform that action at this time.
0 commit comments