Fix safe creation from walletConnect (#703)
This commit is contained in:
parent
f1235738c0
commit
fad5e10c2e
|
@ -302,18 +302,25 @@ const SafeDeployment = ({ creationTxHash, onCancel, onRetry, onSuccess, provider
|
||||||
const web3 = getWeb3()
|
const web3 = getWeb3()
|
||||||
const receipt = await web3.eth.getTransactionReceipt(safeCreationTxHash)
|
const receipt = await web3.eth.getTransactionReceipt(safeCreationTxHash)
|
||||||
|
|
||||||
// get the address for the just created safe
|
let safeAddress
|
||||||
const events = web3.eth.abi.decodeLog(
|
|
||||||
[
|
if (receipt.events) {
|
||||||
{
|
safeAddress = receipt.events.ProxyCreation.returnValues.proxy
|
||||||
type: 'address',
|
} else {
|
||||||
name: 'ProxyCreation',
|
// get the address for the just created safe
|
||||||
},
|
const events = web3.eth.abi.decodeLog(
|
||||||
],
|
[
|
||||||
receipt.logs[0].data,
|
{
|
||||||
receipt.logs[0].topics,
|
type: 'address',
|
||||||
)
|
name: 'ProxyCreation',
|
||||||
const safeAddress = events[0]
|
},
|
||||||
|
],
|
||||||
|
receipt.logs[0].data,
|
||||||
|
receipt.logs[0].topics,
|
||||||
|
)
|
||||||
|
safeAddress = events[0]
|
||||||
|
}
|
||||||
|
|
||||||
setCreatedSafeAddress(safeAddress)
|
setCreatedSafeAddress(safeAddress)
|
||||||
|
|
||||||
interval = setInterval(async () => {
|
interval = setInterval(async () => {
|
||||||
|
|
Loading…
Reference in New Issue