Optimize `appendDeliveryInstruction`.
This simplification allows the compiler to emit less code.
This commit is contained in:
parent
44cd7ee49b
commit
a2bca1782c
|
@ -942,14 +942,13 @@ contract CoreRelayer is CoreRelayerGovernance {
|
||||||
view
|
view
|
||||||
returns (bytes memory newEncoded)
|
returns (bytes memory newEncoded)
|
||||||
{
|
{
|
||||||
newEncoded = abi.encodePacked(encoded, request.targetChain, request.targetAddress, request.refundAddress);
|
|
||||||
newEncoded = abi.encodePacked(
|
newEncoded = abi.encodePacked(
|
||||||
newEncoded,
|
encoded,
|
||||||
|
request.targetChain,
|
||||||
|
request.targetAddress,
|
||||||
|
request.refundAddress,
|
||||||
calculateTargetDeliveryMaximumRefund(request.targetChain, request.maxTransactionFee, provider),
|
calculateTargetDeliveryMaximumRefund(request.targetChain, request.maxTransactionFee, provider),
|
||||||
convertApplicationBudgetAmount(request.receiverValue, request.targetChain, provider)
|
convertApplicationBudgetAmount(request.receiverValue, request.targetChain, provider),
|
||||||
);
|
|
||||||
newEncoded = abi.encodePacked(
|
|
||||||
newEncoded,
|
|
||||||
uint8(1), //version for ExecutionParameters
|
uint8(1), //version for ExecutionParameters
|
||||||
calculateTargetGasDeliveryAmount(request.targetChain, request.maxTransactionFee, provider),
|
calculateTargetGasDeliveryAmount(request.targetChain, request.maxTransactionFee, provider),
|
||||||
provider.getDeliveryAddress(request.targetChain)
|
provider.getDeliveryAddress(request.targetChain)
|
||||||
|
|
Loading…
Reference in New Issue