Skip to content

Commit f20db48

Browse files
fix: Use address(this) as sender in quote in LZForwarder (SC-1126) (#38)
Co-authored-by: Lucas Manuel <lucasmanuel.tech@gmail.com>
1 parent 0900623 commit f20db48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forwarders/LZForwarder.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ library LZForwarder {
6161
payInLzToken: false
6262
});
6363

64-
MessagingFee memory fee = endpoint.quote(params, msg.sender);
64+
MessagingFee memory fee = endpoint.quote(params, address(this));
6565

6666
endpoint.send{ value: fee.nativeFee }(params, _refundAddress);
6767
}

0 commit comments

Comments
 (0)