Skip to content

Commit

Permalink
fix padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 committed Nov 14, 2024
1 parent f08341c commit b1099c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion precompile/modules/initia_stdlib/sources/minitswap.move
Original file line number Diff line number Diff line change
Expand Up @@ -2486,7 +2486,7 @@ module initia_std::minitswap {
0, 0, 0, 0, 0, 0
];
let pad_len = 32 - vector::length(&data) % 32;
if (pad_len == 0) {
if (pad_len == 32) {
return data
};

Expand Down

0 comments on commit b1099c7

Please sign in to comment.