Skip to content

Commit

Permalink
fix: sendOperation
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Jan 24, 2025
1 parent 094a1ce commit f95f222
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 f95f222

Please sign in to comment.