Skip to content

Commit

Permalink
Transpile fa3a30a
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 2, 2023
1 parent 217c313 commit b9fcc08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/crosschain.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This token is mintable and upgradeable by the owner of the contract.

Let's now imagine that this contract is going to live on one chain, but we want the minting and the upgrading to be performed by a xref:governance.adoc[`governor`] contract on another chain.

For example, we could have our token on xDai, with our governor on mainnet, or we could have our token on mainnet, with our governor on optimism
For example, we could have our token on xDai, with our governor on mainnet, or we could have our token on mainnet, with our governor on optimism.

In order to do that, we will start by adding xref:api:crosschain.adoc#CrossChainEnabled[`CrossChainEnabled`] to our contract. You will notice that the contract is now abstract. This is because `CrossChainEnabled` is an abstract contract: it is not tied to any particular chain and it deals with cross-chain interactions in an abstract way. This is what enables us to easily reuse the code for different chains. We will specialize it later by inheriting from a chain-specific implementation of the abstraction.

Expand Down

0 comments on commit b9fcc08

Please sign in to comment.