Skip to content

Commit

Permalink
Rename contract call argumnets to args
Browse files Browse the repository at this point in the history
  • Loading branch information
ryutamago committed Sep 13, 2023
1 parent ccdfc8e commit 18a1ae2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/types/Operation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export type ContractCall = {
contract: ContractAddress;
amount: string;
entrypoint: string;
arguments: MichelsonV1Expression;
args: MichelsonV1Expression;
};

export type Operation =
Expand Down Expand Up @@ -89,7 +89,7 @@ export const makeContractCallOperation = (
type: "contract_call",
contract,
entrypoint,
arguments: args,
args: args,
amount,
};
};
2 changes: 1 addition & 1 deletion src/utils/tezos/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ describe("tezos utils helpers", () => {
contract: mockContractAddress(0),
amount: "10",
entrypoint: "test",
arguments: [{ prim: "unit" }],
args: [{ prim: "unit" }],
};

expect(operationToTaquitoOperation(operation)).toEqual({
Expand Down
2 changes: 1 addition & 1 deletion src/utils/tezos/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const operationToTaquitoOperation = (operation: Operation): ParamsWithKin
to: operation.contract.pkh,
amount: parseInt(operation.amount),
mutez: true,
parameter: { entrypoint: operation.entrypoint, value: operation.arguments },
parameter: { entrypoint: operation.entrypoint, value: operation.args },
};

case "delegation":
Expand Down

0 comments on commit 18a1ae2

Please sign in to comment.