Skip to content

Commit

Permalink
fixed type annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscojoray committed May 6, 2024
1 parent a8cdc79 commit 4ed9070
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions offchain/tests/admin/create-pellets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ const data = parse(text, {
skipFirstRow: true,
columns: ["fuel", "pos_x", "pos_y"],
});
const params = data.map((p) => ({
fuel: BigInt(p.fuel),
pos_x: BigInt(p.pos_x),
pos_y: BigInt(p.pos_y),
}));
const params: { fuel: bigint; pos_x: bigint; pos_y: bigint }[] = data.map(
(p) => ({
fuel: BigInt(p.fuel),
pos_x: BigInt(p.pos_x),
pos_y: BigInt(p.pos_y),
})
);

const txHash = await createPellets(admin_token, params);
printTxURL(txHash);

0 comments on commit 4ed9070

Please sign in to comment.