Skip to content

Commit

Permalink
Merge pull request #48 from airgap-it/fix/requestOperation
Browse files Browse the repository at this point in the history
fix: sendOperation
  • Loading branch information
IsaccoSordo authored Jan 24, 2025
2 parents 094a1ce + f95f222 commit 7f3dfb2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/utils/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,18 @@ export const sendGetAccount = async () => {
export const sendOperationRequest = async (
operations: PartialTezosOperation[],
): Promise<string> => {
const newOperations = operations.map((operation) => ({
...operation,
counter: undefined,
}));
const result = await window.ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: defaultSnapOrigin,
request: {
method: 'tezos_sendOperation',
params: {
payload: operations,
payload: newOperations,
},
},
},
Expand Down

0 comments on commit 7f3dfb2

Please sign in to comment.