Commit 5e1fda0
committed
Extrct deployment transaction from upgraded contract
After proxy contract is upgraded we had a problem with
extracting deployment transaction via
`contract.deploymentTransaction()` from ethers. It was happening
because OpenZeppelin's `upgradeProxy` was replacing deployment
tx on the proxy contract but the field was different than what ethers
function expected. Let's make it work by directly using the field
that `upgradeProxy` adds on the contact's object.1 parent b5fb923 commit 5e1fda0
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
152 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
| |||
0 commit comments