Skip to content

Commit

Permalink
Check call length
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Feb 22, 2024
1 parent 207460d commit f8f0f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/src/Gateway.sol
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ contract Gateway is IGateway, IInitializable {
Weight calldata weightAtMost,
bytes calldata call
) external payable {
if (call.length == 0 || destinationFee == 0 || weightAtMost.refTime == 0 || weightAtMost.proofSize == 0) {
if (call.length < 2 || destinationFee == 0 || weightAtMost.refTime == 0 || weightAtMost.proofSize == 0) {
revert InvalidTransact();
}
Ticket memory ticket;
Expand Down

0 comments on commit f8f0f57

Please sign in to comment.