Skip to content

Commit

Permalink
Revert "Merge pull request #48 from airgap-it/fix/requestOperation"
Browse files Browse the repository at this point in the history
This reverts commit 7f3dfb2, reversing
changes made to 094a1ce.
  • Loading branch information
IsaccoSordo committed Jan 24, 2025
1 parent 7f3dfb2 commit 69dc29d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/utils/snap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,14 @@ 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: newOperations,
payload: operations,
},
},
},
Expand Down

0 comments on commit 69dc29d

Please sign in to comment.