diff --git a/src/types/Operation.ts b/src/types/Operation.ts index f08eafd603..a1793f65f9 100644 --- a/src/types/Operation.ts +++ b/src/types/Operation.ts @@ -48,7 +48,7 @@ export type ContractCall = { contract: ContractAddress; amount: string; entrypoint: string; - arguments: MichelsonV1Expression; + args: MichelsonV1Expression; }; export type Operation = @@ -89,7 +89,7 @@ export const makeContractCallOperation = ( type: "contract_call", contract, entrypoint, - arguments: args, + args: args, amount, }; }; diff --git a/src/utils/tezos/helpers.test.ts b/src/utils/tezos/helpers.test.ts index b0f73d5cca..88971355e1 100644 --- a/src/utils/tezos/helpers.test.ts +++ b/src/utils/tezos/helpers.test.ts @@ -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({ diff --git a/src/utils/tezos/helpers.ts b/src/utils/tezos/helpers.ts index ca33b31b64..c71ef21216 100644 --- a/src/utils/tezos/helpers.ts +++ b/src/utils/tezos/helpers.ts @@ -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":