Commit f21d422 pgolovkin
committed
1 parent 1e13152 commit f21d422 Copy full SHA for f21d422
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ contract Bridge {
91
91
receive () external payable {
92
92
revert ();
93
93
}
94
+
95
+ /*
96
+ Used only for migration
97
+ */
98
+ function receivePayment () external payable {}
94
99
95
100
/**
96
101
* Adds new token to whitelist.
@@ -170,7 +175,7 @@ contract Bridge {
170
175
function shutDownAndMigrate (
171
176
address thisContractAddress ,
172
177
bytes32 salt ,
173
- address newContractAddress ,
178
+ address payable newContractAddress ,
174
179
address [] calldata erc20nativeTokens ,
175
180
uint8 [] memory v ,
176
181
bytes32 [] memory r ,
@@ -192,6 +197,7 @@ contract Bridge {
192
197
IERC20 token = IERC20 (erc20nativeTokens[i]);
193
198
token.transfer (newContractAddress, token.balanceOf (address (this )));
194
199
}
200
+ Bridge (newContractAddress).receivePayment {value: address (this ).balance}();
195
201
initialized_ = false ;
196
202
emit Migrated (newContractAddress);
197
203
}
You can’t perform that action at this time.
0 commit comments