Skip to content

Commit

Permalink
build: fix forge submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
dndll committed Feb 19, 2024
1 parent 002092d commit dda185c
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 16 deletions.
24 changes: 12 additions & 12 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[submodule "circuits/plonky2x/contracts/forge/lib/forge-std"]
path = circuits/plonky2x/contracts/forge/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "vendor/starkyx"]
path = vendor/starkyx
url = [email protected]:succinctlabs/starkyx.git
[submodule "vendor/succinctx"]
path = vendor/succinctx
url = [email protected]:succinctlabs/succinctx.git
[submodule "circuits/plonky2x/verifier/lib/openzeppelin-contracts-upgradeable"]
path = circuits/plonky2x/verifier/lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "circuits/plonky2x/verifier/lib/openzeppelin-contracts"]
path = circuits/plonky2x/verifier/lib/openzeppelin-contracts
[submodule "nearx/contract/lib/openzeppelin-contracts"]
path = nearx/contract/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "circuits/plonky2x/verifier/lib/foundry-devops"]
path = circuits/plonky2x/verifier/lib/foundry-devops
[submodule "nearx/contract/lib/openzeppelin-contracts-upgradeable"]
path = nearx/contract/lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "nearx/contract/lib/foundry-devops"]
path = nearx/contract/lib/foundry-devops
url = https://github.com/chainaccelorg/foundry-devops
[submodule "circuits/plonky2x/contract/lib/solidity-bytes-utils"]
path = circuits/plonky2x/contract/lib/solidity-bytes-utils
[submodule "nearx/contract/lib/solidity-bytes-utils"]
path = nearx/contract/lib/solidity-bytes-utils
url = https://github.com/GNSPS/solidity-bytes-utils
[submodule "nearx/contract/lib/forge-std"]
path = nearx/contract/lib/forge-std
url = https://github.com/foundry-rs/forge-std
2 changes: 1 addition & 1 deletion bin/client/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl Handler<BatchGetProof> for LightClient {

impl LightClient {
pub fn new(config: &Config) -> Result<Self> {
let client = rpc::NearRpcClient::new(config.network.clone());
let client = rpc::NearRpcClient::new(config.network);

// TODO: store selector in config
let store = store::sled::init(config)?;
Expand Down
1 change: 1 addition & 0 deletions nearx/contract/lib/forge-std
Submodule forge-std added at ae570f
1 change: 1 addition & 0 deletions nearx/contract/lib/foundry-devops
Submodule foundry-devops added at efe878
1 change: 1 addition & 0 deletions nearx/contract/lib/openzeppelin-contracts
Submodule openzeppelin-contracts added at 3def8f
1 change: 1 addition & 0 deletions nearx/contract/lib/openzeppelin-contracts-upgradeable
1 change: 1 addition & 0 deletions nearx/contract/lib/solidity-bytes-utils
Submodule solidity-bytes-utils added at e0115c
6 changes: 3 additions & 3 deletions nearx/src/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl<L: PlonkParameters<D>, const D: usize> AsyncHint<L, D> for FetchNextHeaderI
input_stream: &mut ValueStream<L, D>,
output_stream: &mut ValueStream<L, D>,
) {
let client = NearRpcClient::new(self.0.clone());
let client = NearRpcClient::new(self.0);

let h = input_stream.read_value::<CryptoHashVariable>().0;

Expand Down Expand Up @@ -59,7 +59,7 @@ impl<L: PlonkParameters<D>, const D: usize> AsyncHint<L, D> for FetchHeaderInput
input_stream: &mut ValueStream<L, D>,
output_stream: &mut ValueStream<L, D>,
) {
let client = NearRpcClient::new(self.0.clone());
let client = NearRpcClient::new(self.0);

let h = input_stream.read_value::<CryptoHashVariable>().0;

Expand Down Expand Up @@ -102,7 +102,7 @@ impl<L: PlonkParameters<D>, const D: usize, const B: usize> AsyncHint<L, D>
input_stream: &mut ValueStream<L, D>,
output_stream: &mut ValueStream<L, D>,
) {
let client = NearRpcClient::new(self.0.clone());
let client = NearRpcClient::new(self.0);
let block_merkle_root = input_stream.read_value::<CryptoHashVariable>().0;
let last_verified = input_stream.read_value::<CryptoHashVariable>().0;

Expand Down

0 comments on commit dda185c

Please sign in to comment.