Skip to content

Commit

Permalink
fix: use parity-secp256k1 crate from github (#884)
Browse files Browse the repository at this point in the history
The PR fixes building by replacing the usage of the `parity-secp256k1`
crate from crates.io to github.
  • Loading branch information
aleksuss committed Feb 6, 2024
1 parent dc3f3c3 commit e1e6a81
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
etc/eth-contracts
etc/tests/uniswap
- name: Install dependencies
run: cargo make -V || cargo install cargo-make
run: cargo +stable make -V || cargo +stable install cargo-make
- name: Build main contract
run: |
case ${{ matrix.profile }} in
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
target/
key: ${{ matrix.profile }}-cargo-modexp-test
- name: Install dependencies
run: cargo make -V || cargo install cargo-make
run: cargo +stable make -V || cargo +stable install cargo-make
- name: Test ${{ matrix.profile }} bench-modexp
run: cargo make --profile ${{ matrix.profile }} bench-modexp

Expand Down
3 changes: 1 addition & 2 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ test-case = "3.1"
walrus = "0.20"
wee_alloc = { version = "0.4", default-features = false }

[patch.crates-io]
parity-secp256k1 = { git = 'https://github.com/paritytech/rust-secp256k1', rev = "d05fd8e" }

[workspace]
resolver = "2"
members = [
Expand Down
3 changes: 3 additions & 0 deletions etc/tests/fibonacci/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ panic = "abort"
[dependencies]
near-sdk = "4.1"
serde = "1"

[patch.crates-io]
parity-secp256k1 = { git = 'https://github.com/paritytech/rust-secp256k1', rev = "d05fd8e" }
3 changes: 3 additions & 0 deletions etc/tests/ft-receiver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
near-sdk = "4.1"
near-contract-standards = "4.1"

[patch.crates-io]
parity-secp256k1 = { git = 'https://github.com/paritytech/rust-secp256k1', rev = "d05fd8e" }
3 changes: 3 additions & 0 deletions etc/tests/modexp-bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ panic = "abort"
aurora-engine-modexp = { path = "../../../engine-modexp", default-features = false, features = ["bench", "std"] }
hex = { version = "0.4", default-features = false, features = ["alloc"] }
near-sdk = "4.1"

[patch.crates-io]
parity-secp256k1 = { git = 'https://github.com/paritytech/rust-secp256k1', rev = "d05fd8e" }
3 changes: 3 additions & 0 deletions etc/xcc-router/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ panic = "abort"
aurora-engine-types = { path = "../../engine-types", default-features = false, features = ["borsh-compat"] }
near-sdk = "4.1"

[patch.crates-io]
parity-secp256k1 = { git = 'https://github.com/paritytech/rust-secp256k1', rev = "d05fd8e" }

[features]
default = []
all-promise-actions = []

0 comments on commit e1e6a81

Please sign in to comment.