Commit 352e0f52 authored by OptimismBot's avatar OptimismBot Committed by GitHub

Merge pull request #5627 from ethereum-optimism/willc/warning

feat(sdk): Add a bedrock warning
parents 2f36c790 aa854bdd
---
'@eth-optimism/sdk': patch
---
Add warning if bedrock is not turned on
......@@ -144,6 +144,12 @@ export class CrossChainMessenger {
bedrock?: boolean
}) {
this.bedrock = opts.bedrock ?? false
if (!this.bedrock) {
console.warn(
'Bedrock compatibility is disabled in CrossChainMessenger. Please enable it if you are using Bedrock.'
)
}
this.l1SignerOrProvider = toSignerOrProvider(opts.l1SignerOrProvider)
this.l2SignerOrProvider = toSignerOrProvider(opts.l2SignerOrProvider)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment