Skip to content

Commit

Permalink
update contract comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sisyphusSmiling committed May 1, 2024
1 parent 5c4700a commit 118a4e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cadence/contracts/standards/EVM.cdc
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ contract EVM {
self.bridgeAccessorCap = nil
}

/// Returns an EVMBridge entitled reference to the underlying BridgeAccessor resource
/// Returns a Bridge entitled reference to the underlying BridgeAccessor resource
access(Bridge) view fun borrowBridgeAccessor(): auth(Bridge) &{BridgeAccessor} {
let cap = self.bridgeAccessorCap ?? panic("BridgeAccessor Capabaility is not yet set")
return cap.borrow() ?? panic("Problem retrieving BridgeAccessor reference")
Expand All @@ -641,6 +641,7 @@ contract EVM {
}
}

/// Initializes the BridgeRouter resource. Can only be executed if there is not already a BridgeRouter resource.
access(all) fun initBridgeRouter() {
pre {
self.account.storage.type(at: /storage/evmBridgeRouter) == nil: "BridgeRouter has already been initialized"
Expand Down

0 comments on commit 118a4e3

Please sign in to comment.