Skip to content

Commit

Permalink
feat: add compileStructToCalldata
Browse files Browse the repository at this point in the history
  • Loading branch information
janek26 committed Dec 1, 2021
1 parent f7ff057 commit e5bdb18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/stark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ export function formatSignature(sig?: [BigNumberish, BigNumberish]): [string, st
return [];
}
}

export function compileStructToCalldata<S extends { [k: string]: string }>(struct: S): string[] {
return Object.values(struct);
}

0 comments on commit e5bdb18

Please sign in to comment.