Commit f997db0 1 parent 0057a9b commit f997db0 Copy full SHA for f997db0
File tree 9 files changed +14
-14
lines changed
bridge-fungible-token/tests/utils
contract-message-predicate/tests/utils
9 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 24
24
npm-token : ${{ secrets.NPM_TOKEN }}
25
25
26
26
- name : Build Contracts
27
- run : forc build
27
+ run : forc build --release
28
28
29
29
- name : Build
30
30
run : pnpm build
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ This project uses the general contract message relaying script/predicate from th
28
28
In the root of the repository run the following command to build all the Sway programs.
29
29
30
30
``` bash
31
- forc build
31
+ forc build --release
32
32
```
33
33
34
34
### Running Rust Tests
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ pub(crate) const CONTRACT_MESSAGE_PREDICATE_BINARY: &str =
3
3
pub ( crate ) const MESSAGE_SENDER_ADDRESS : & str =
4
4
"0x00000000000000000000000096c53cd98B7297564716a8f2E1de2C83928Af2fe" ;
5
5
pub ( crate ) const BRIDGE_FUNGIBLE_TOKEN_CONTRACT_BINARY : & str =
6
- "../bridge-fungible-token/out/debug /bridge_fungible_token.bin" ;
6
+ "../bridge-fungible-token/out/release /bridge_fungible_token.bin" ;
7
7
pub ( crate ) const DEPOSIT_RECIPIENT_CONTRACT_BINARY : & str =
8
- "../test-deposit-recipient-contract/out/debug /test_deposit_recipient_contract.bin" ;
8
+ "../test-deposit-recipient-contract/out/release /test_deposit_recipient_contract.bin" ;
9
9
10
10
pub ( crate ) const BRIDGED_TOKEN : & str =
11
11
"0x00000000000000000000000000000000000000000000000000000000deadbeef" ;
Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ use super::constants::{
31
31
abigen ! (
32
32
Contract (
33
33
name = "BridgeFungibleTokenContract" ,
34
- abi = "packages/fungible-token/bridge-fungible-token/out/debug /bridge_fungible_token-abi.json" ,
34
+ abi = "packages/fungible-token/bridge-fungible-token/out/release /bridge_fungible_token-abi.json" ,
35
35
) ,
36
36
Contract (
37
37
name = "DepositRecipientContract" ,
38
38
abi =
39
- "packages/fungible-token/test-deposit-recipient-contract/out/debug /test_deposit_recipient_contract-abi.json" ,
39
+ "packages/fungible-token/test-deposit-recipient-contract/out/release /test_deposit_recipient_contract-abi.json" ,
40
40
) ,
41
41
) ;
42
42
Original file line number Diff line number Diff line change 1
- export { default as fungibleTokenABI } from '../bridge-fungible-token/out/debug /bridge_fungible_token-abi.json' ;
2
- export { default as fungibleTokenStorageSlots } from '../bridge-fungible-token/out/debug /bridge_fungible_token-storage_slots.json' ;
3
- import _fungibleTokenBinary from '../bridge-fungible-token/out/debug /bridge_fungible_token.bin' ;
1
+ export { default as fungibleTokenABI } from '../bridge-fungible-token/out/release /bridge_fungible_token-abi.json' ;
2
+ export { default as fungibleTokenStorageSlots } from '../bridge-fungible-token/out/release /bridge_fungible_token-storage_slots.json' ;
3
+ import _fungibleTokenBinary from '../bridge-fungible-token/out/release /bridge_fungible_token.bin' ;
4
4
5
5
export const fungibleTokenBinary = _fungibleTokenBinary ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ The message to contract predicate relies on a script that performs only the foll
19
19
Build:
20
20
21
21
``` sh
22
- pnpm forc build
22
+ pnpm forc build --release
23
23
cargo run
24
24
```
25
25
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ use super::builder;
21
21
22
22
abigen ! ( Contract (
23
23
name = "TestContract" ,
24
- abi = "packages/message-predicates/contract-message-predicate/out/debug /contract_message_test-abi.json"
24
+ abi = "packages/message-predicates/contract-message-predicate/out/release /contract_message_test-abi.json"
25
25
) ) ;
26
26
27
27
pub const MESSAGE_SENDER_ADDRESS : & str =
28
28
"0xca400d3e7710eee293786830755278e6d2b9278b4177b8b1a896ebd5f55c10bc" ;
29
- pub const TEST_RECEIVER_CONTRACT_BINARY : & str = "./out/debug /contract_message_test.bin" ;
29
+ pub const TEST_RECEIVER_CONTRACT_BINARY : & str = "./out/release /contract_message_test.bin" ;
30
30
31
31
/// Sets up a test fuel environment with a funded wallet
32
32
pub async fn setup_environment (
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- forc build
3
+ forc build --release
4
4
cargo run
5
5
turbo run build
Original file line number Diff line number Diff line change 2
2
3
3
pnpm forc fmt --check
4
4
cargo fmt --check
5
- pnpm forc build
5
+ pnpm forc build --release
6
6
cargo clippy --all-features --all-targets -- -D warnings
7
7
pnpm prettier:check
You can’t perform that action at this time.
0 commit comments