Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-p committed Oct 19, 2023
1 parent 37959d1 commit 7970649
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/lib/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3992,18 +3992,7 @@ export default class Compiler {
const subroutine = this.subroutines.find((s) => s.name === methodName);
if (!subroutine) throw new Error(`Unknown subroutine ${methodName}`);

new Array(...chain[1].arguments).reverse().forEach((a, i) => {
const { type } = subroutine.args[i];
const tupleStr = this.getABITupleString(this.getABIType(type));
// if (tupleStr.startsWith('(') || tupleStr.endsWith(']')) {
// if (
// this.constants[a.getText()] === undefined
// && !ts.isArrayLiteralExpression(a)
// && !((ts.isCallExpression(a) && ts.isIdentifier(a.expression)))
// ) {
// throw Error(`Passing non-literal array arguments to subroutines is not yet supported. Use "clone(${a.getText()})" and manually update the value after the method call if necessary`);
// }
// }
new Array(...chain[1].arguments).reverse().forEach((a) => {
this.processNode(a);
});

Expand Down

0 comments on commit 7970649

Please sign in to comment.