Skip to content

Commit

Permalink
staging: add scarb (kkrt-labs#1207)
Browse files Browse the repository at this point in the history
* add scarb in staging

* add which env var is missing

* update evm private key

* uncomment staging
  • Loading branch information
greged93 authored Jun 18, 2024
1 parent 755bda0 commit 0b1ab44
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: 0.7.0
- name: Set up submodules
run: |
cd lib/kakarot
Expand All @@ -50,7 +53,7 @@ jobs:
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python
KAKAROT_STAGING_ACCOUNT_ADDRESS: "0x7ecf6cd45c32ce84812e660cc176cb8b4de2e7a6d5916fe326bf871466fbe02"
KAKAROT_STAGING_PRIVATE_KEY: ${{ secrets.KAKAROT_STAGING_PRIVATE_KEY }}
EVM_PRIVATE_KEY: "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
EVM_PRIVATE_KEY: "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
STARKNET_NETWORK: kakarot-staging
KAKAROT_STAGING_RPC_URL: https://juno-kakarot-testnet-stage.karnot.xyz
WEB3_HTTP_PROVIDER_URI: https://kkrt-rpc-kakarot-testnet-stage.karnot.xyz
Expand Down
2 changes: 1 addition & 1 deletion .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ lint:
- [email protected]
- [email protected]
- [email protected]
- [email protected].1
- [email protected].2
- [email protected]
- [email protected]
- [email protected]
Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::env::var;
use url::Url;

fn env_var_to_field_element(var_name: &str) -> Result<FieldElement, eyre::Error> {
let env_var = var(var_name)?;
let env_var = var(var_name).map_err(|_| eyre!("missing env var: {var_name}"))?;

Ok(FieldElement::from_hex_be(&env_var)?)
}
Expand Down

0 comments on commit 0b1ab44

Please sign in to comment.