`forge fmt` run.
This commit is contained in:
parent
a41490cc38
commit
eced885877
|
@ -80,14 +80,7 @@ contract XmintHub is ERC20, IWormholeReceiver {
|
||||||
//token, amount, receipientChain, recipientAddress, nonce, payload
|
//token, amount, receipientChain, recipientAddress, nonce, payload
|
||||||
abi.encodeCall(
|
abi.encodeCall(
|
||||||
ITokenBridge.transferTokensWithPayload,
|
ITokenBridge.transferTokensWithPayload,
|
||||||
(
|
(address(this), amount, remoteChain, trustedContracts[remoteChain], nonce, payload)
|
||||||
address(this),
|
|
||||||
amount,
|
|
||||||
remoteChain,
|
|
||||||
trustedContracts[remoteChain],
|
|
||||||
nonce,
|
|
||||||
payload
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,12 +57,7 @@ contract XmintSpoke is IWormholeReceiver {
|
||||||
(bool success, bytes memory data) = address(token_bridge).call{value: bridgeAmount + core_bridge.messageFee()}(
|
(bool success, bytes memory data) = address(token_bridge).call{value: bridgeAmount + core_bridge.messageFee()}(
|
||||||
abi.encodeCall(
|
abi.encodeCall(
|
||||||
ITokenBridge.wrapAndTransferETHWithPayload,
|
ITokenBridge.wrapAndTransferETHWithPayload,
|
||||||
(
|
(hub_contract_chain, hub_contract_address, nonce, abi.encode(core_relayer.toWormholeFormat(msg.sender)))
|
||||||
hub_contract_chain,
|
|
||||||
hub_contract_address,
|
|
||||||
nonce,
|
|
||||||
abi.encode(core_relayer.toWormholeFormat(msg.sender))
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue