Skip to content

Commit

Permalink
fix: contract call operations (update sdk) (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuizAsFight authored Jun 7, 2024
1 parent 400fb6a commit d4e3979
Show file tree
Hide file tree
Showing 10 changed files with 211 additions and 195 deletions.
7 changes: 7 additions & 0 deletions .changeset/beige-plants-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@fuel-wallet/connections": patch
"@fuel-wallet/types": patch
"fuels-wallet": patch
---

update fuel-connectors to 0.5.0
7 changes: 7 additions & 0 deletions .changeset/tender-llamas-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@fuel-wallet/connections": patch
"@fuel-wallet/types": patch
"fuels-wallet": patch
---

update fuels to get fix from contract operation
4 changes: 2 additions & 2 deletions examples/cra-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"start": "vite"
},
"dependencies": {
"@fuels/connectors": "0.4.0",
"@fuels/connectors": "0.5.0",
"@fuels/react": "0.21.0",
"@tanstack/react-query": "5.28.4",
"fuels": "0.0.0-pr-2407-20240528164024",
"fuels": "pr-2479",
"react": "18.2.0",
"react-dom": "18.2.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"events": "3.3.0",
"fake-indexeddb": "4.0.2",
"framer-motion": "10.16.4",
"fuels": "0.0.0-pr-2407-20240528164024",
"fuels": "pr-2479",
"json-rpc-2.0": "1.7.0",
"lodash.debounce": "4.0.8",
"react": "18.2.0",
Expand All @@ -63,7 +63,7 @@
"devDependencies": {
"@crxjs/vite-plugin": "1.0.14",
"@fuel-wallet/types": "workspace:*",
"@fuels/connectors": "0.4.0",
"@fuels/connectors": "0.5.0",
"@playwright/test": "1.39.0",
"@sentry/cli": "2.21.2",
"@storybook/addon-a11y": "7.4.6",
Expand Down
2 changes: 2 additions & 0 deletions packages/app/src/systems/Transaction/services/transaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export class TxService {
const simulateTxErrors = getGroupedErrors(errorsToParse);

const gasPrice = await provider.getLatestGasPrice();
const baseAssetId = provider.getBaseAssetId();
const txSummary = assembleTransactionSummary({
receipts: [],
transaction,
Expand All @@ -188,6 +189,7 @@ export class TxService {
gasCosts,
maxGasPerTx,
gasPrice,
baseAssetId,
});
txSummary.isStatusFailure = true;
txSummary.status = TransactionStatus.failure;
Expand Down
8 changes: 4 additions & 4 deletions packages/connections/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@
"uuid": "^9.0.1"
},
"peerDependencies": {
"@fuels/connectors": ">=0.4.0",
"fuels": ">=0.84.0"
"@fuels/connectors": ">=0.5.0",
"fuels": ">=0.88.1"
},
"devDependencies": {
"@fuel-wallet/types": "workspace:*",
"@fuels/connectors": "0.4.0",
"@fuels/connectors": "0.5.0",
"@types/uuid": "^9.0.5",
"blob-polyfill": "^7.0.20220408",
"fuels": "0.0.0-pr-2407-20240528164024",
"fuels": "pr-2479",
"jest-environment-jsdom": "29.6.2",
"tsup": "^7.2.0",
"undici": "^6.4.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@fuel-ui/css": "0.23.3",
"@fuel-ui/icons": "0.23.3",
"@fuel-ui/react": "0.23.3",
"@fuels/connectors": "0.4.0",
"@fuels/connectors": "0.5.0",
"@fuels/react": "0.21.0",
"@mdx-js/react": "^2.3.0",
"@next/mdx": "14.2.3",
Expand All @@ -26,7 +26,7 @@
"acorn-walk": "^8.2.0",
"dotenv": "^16.3.1",
"framer-motion": "^10.16.4",
"fuels": "0.0.0-pr-2407-20240528164024",
"fuels": "pr-2479",
"globby": "^13.2.2",
"gray-matter": "^4.0.3",
"hast-util-heading-rank": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-contract-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"preview": "vite preview"
},
"dependencies": {
"@fuels/connectors": "0.4.0",
"@fuels/connectors": "0.5.0",
"@fuels/react": "0.21.0",
"@tanstack/react-query": "5.28.4",
"fuels": "0.0.0-pr-2407-20240528164024",
"fuels": "pr-2479",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.11",
Expand Down
8 changes: 4 additions & 4 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"dexie-observable": "4.0.1-beta.13"
},
"peerDependencies": {
"@fuels/connectors": ">=0.4.0",
"fuels": ">=0.84.0"
"@fuels/connectors": ">=0.5.0",
"fuels": ">=0.88.1"
},
"devDependencies": {
"@fuels/connectors": "0.4.0",
"fuels": "0.0.0-pr-2407-20240528164024",
"@fuels/connectors": "0.5.0",
"fuels": "pr-2479",
"tsup": "^7.2.0"
}
}
Loading

0 comments on commit d4e3979

Please sign in to comment.