Skip to content

Commit

Permalink
feat: update to beta-4 (#96)
Browse files Browse the repository at this point in the history
```
fuel-core - 0.20.7
fuels - 0.63.0
rust - 1.73.0
forc - 0.46.0
```
  • Loading branch information
LuizAsFight authored Oct 21, 2023
1 parent ae19f30 commit b9e4e48
Show file tree
Hide file tree
Showing 12 changed files with 356 additions and 250 deletions.
6 changes: 6 additions & 0 deletions .changeset/shy-grapes-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@fuel-bridge/fungible-token': minor
'@fuel-bridge/test-utils': minor
---

Update to most recenta beta-4. fuel-core 0.20.7 + fuels 0.63.0
4 changes: 2 additions & 2 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: 'Rust & Forc Setup'

inputs:
rust-version:
default: 1.72.0
default: 1.73.0
forc-components:
default: 'forc@0.44.1, [email protected].4'
default: 'forc@0.46.0, [email protected].7'

runs:
using: 'composite'
Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fuel-asm = "0.36.0"
fuel-tx = "0.35.3"

# Dependencies from fuel-core repository:
fuel-core-types = { version = "0.20.4", default-features = false }
fuel-core-types = { version = "0.20.7", default-features = false }

# Dependencies from fuels-rs repository:
fuels = { version = "0.46", features = ["fuel-core-lib"] }
Expand Down
2 changes: 1 addition & 1 deletion docker/fuel-core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/fuellabs/fuel-core:v0.20.5
FROM ghcr.io/fuellabs/fuel-core:v0.20.7

ARG FUEL_IP=0.0.0.0
ARG FUEL_PORT=4001
Expand Down
2 changes: 1 addition & 1 deletion packages/esbuild-bin-loader/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"build": "tsup"
},
"dependencies": {
"fuels": "0.58.0"
"fuels": "0.63.0"
}
}
8 changes: 4 additions & 4 deletions packages/fungible-token/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<p align="center">
<a href="https://crates.io/crates/forc/0.44.0" alt="forc">
<img src="https://img.shields.io/badge/forc-v0.44.0-orange" />
<a href="https://crates.io/crates/forc/0.46.0" alt="forc">
<img src="https://img.shields.io/badge/forc-v0.46.0-orange" />
</a>
<a href="https://crates.io/crates/fuel-core/0.20.4" alt="fuel-core">
<img src="https://img.shields.io/badge/fuel--core-v0.20.4-blue" />
<a href="https://crates.io/crates/fuel-core/0.20.7" alt="fuel-core">
<img src="https://img.shields.io/badge/fuel--core-v0.20.7-blue" />
</a>
</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
channel = "latest-2023-07-20"

[components]
forc = "0.44.0"
fuel-core = "0.20.3"
forc = "0.46.0"
fuel-core = "0.20.7"
2 changes: 1 addition & 1 deletion packages/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dotenv": "^16.0.3",
"ethereum-waffle": "^4.0.2",
"ethers": "^5.7.2",
"fuels": "0.58.0",
"fuels": "0.63.0",
"mocha": "^10.0.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"build": "tsup"
},
"peerDependencies": {
"fuels": ">=0.58.0",
"fuels": ">=0.63.0",
"ethers": ">=5.7.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/test-utils/src/utils/fuels/relayCommonMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
OutputType,
Predicate,
bn,
MAX_GAS_PER_TX,
} from 'fuels';

import { debug } from '../logs';
Expand Down Expand Up @@ -66,10 +65,11 @@ function getCommonRelayableMessages(provider: Provider) {
throw new Error('cannot find contract ID in message data');
const contractId = hexlify(data.slice(0, 32));

const { maxGasPerTx } = provider.getGasConfig();
// build the transaction
const transaction = new ScriptTransactionRequest({
script,
gasLimit: MAX_GAS_PER_TX,
gasLimit: maxGasPerTx,
...txParams,
});
transaction.inputs.push({
Expand Down
Loading

0 comments on commit b9e4e48

Please sign in to comment.