-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2b94c5
commit 5d50e09
Showing
3 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
cadence/scripts/bridge/type_requires_onboarding_by_identifier.cdc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import "FlowEVMBridge" | ||
|
||
/// Returns whether a type needs to be onboarded to the FlowEVMBridge | ||
/// | ||
/// @param identifier: The identifier of the Cadence Type in question | ||
/// | ||
/// @return Whether the type requires onboarding to the FlowEVMBridge if the type is bridgeable, otherwise nil | ||
/// | ||
access(all) fun main(identifier: String): Bool? { | ||
if let type = CompositeType(identifier) { | ||
return FlowEVMBridge.typeRequiresOnboarding(type) | ||
} | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters