Skip to content

Commit

Permalink
update docs for ownership commands
Browse files Browse the repository at this point in the history
  • Loading branch information
austinabell committed Sep 26, 2024
1 parent 92c07db commit 1cc1fa8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions usage-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,20 @@ Get the current implementation address:
cast storage 0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc
```

#### Ownership transfer

Get current owner:

```
cast call 0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0 "owner()(address)"
```

```
cast send --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0 "transferOwnership(address)" 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
cast send --private-key 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d 0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0 "acceptOwnership()"
```

> Addresses and private key from default anvil test node

0 comments on commit 1cc1fa8

Please sign in to comment.