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

Update core contracts to latest stable cadence #382

Merged
merged 23 commits into from
Nov 21, 2023
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
Next Next commit
use optional chaining and nil-coaelescing instead of force-unwrapping
  • Loading branch information
turbolent committed Sep 22, 2023
commit 54fc44b63d2fae62092069066aa729d265950c88
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ transaction {
prepare(acct: auth(BorrowValue) &Account) {

if acct.storage.borrow<auth(FlowIDTableStaking.DelegatorOwner) &FlowIDTableStaking.NodeDelegator>(from: FlowIDTableStaking.DelegatorStoragePath) == nil ||
acct.capabilities.get<&{FlowIDTableStaking.NodeDelegatorPublic}>(/public/flowStakingDelegator)!.check()
acct.capabilities.get<&{FlowIDTableStaking.NodeDelegatorPublic}>(/public/flowStakingDelegator)?.check() ?? false
{
return
}
Expand Down