Skip to content

Commit

Permalink
Fix for #269 (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
cd1m0 committed Apr 24, 2024
1 parent 4e1e708 commit 1470df5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/types/infer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1431,9 +1431,14 @@ export class InferType {
argTs.push(...node.parent.vArguments.map((arg) => this.typeOf(arg)));

for (const argT of argTs) {
if (!(argT instanceof PointerType && eq(argT.to, baseT.type))) {
if (
!(
(argT instanceof PointerType && eq(argT.to, baseT.type)) ||
argT instanceof FixedBytesType
)
) {
throw new SolTypeError(
`Unexpected arguments to concat in ${pp(node.parent)}`
`Unexpected argument type ${argT.pp()} to builtin function bytes.concat in ${pp(node.parent)}.`
);
}
}
Expand Down

0 comments on commit 1470df5

Please sign in to comment.