Skip to content

Commit

Permalink
Fix create COA example script (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanschalm authored Sep 20, 2024
1 parent 00936d6 commit fc14edb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/evm/cadence/interacting-with-coa.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ import "EVM"
// Note that this is a simplified example & will not handle cases where the COA already exists
transaction() {
prepare(signer: auth(SaveValue) &Account) {
prepare(signer: auth(SaveValue, IssueStorageCapabilityController, PublishCapability) &Account) {
let storagePath = /storage/evm
let publicPath = /public/evm
Expand All @@ -119,7 +119,7 @@ transaction() {
// Publish a public capability to the COA
let cap = signer.capabilities.storage.issue<&EVM.CadenceOwnedAccount>(storagePath)
signer.capabilities.link<&EVM.CadenceOwnedAccount>(cap, at: publicPath)
signer.capabilities.publish(cap, at: publicPath)
}
}
```
Expand Down

0 comments on commit fc14edb

Please sign in to comment.