Skip to content

Commit

Permalink
Merge pull request #39 from CirclesUBI/fix_foundry
Browse files Browse the repository at this point in the history
Fix foundry install.
  • Loading branch information
chriseth authored May 25, 2023
2 parents 18cc005 + a88d4b4 commit 64666e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- name: Setup PATH
run: echo ~/.foundry/bin/ >> $GITHUB_PATH
run: echo ~/.config/.foundry/bin/ >> $GITHUB_PATH
- name: Install Dependencies
run: curl -L https://foundry.paradigm.xyz | bash && foundryup
- name: Format
Expand Down
5 changes: 3 additions & 2 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::io::{import_from_safes_binary, read_edges_binary, read_edges_csv};
use crate::types::edge::EdgeDB;
use crate::types::{Address, Edge, U256};
use json::JsonValue;
use num_bigint::BigUint;
use std::error::Error;
use std::fmt::{Debug, Display, Formatter};
use std::io::Read;
Expand All @@ -13,7 +14,6 @@ use std::str::FromStr;
use std::sync::mpsc::TrySendError;
use std::sync::{mpsc, Arc, Mutex, RwLock};
use std::thread;
use num_bigint::BigUint;

struct JsonRpcRequest {
id: JsonValue,
Expand Down Expand Up @@ -171,7 +171,8 @@ fn compute_transfer(
if parsed_value_param > U256::MAX.into() {
return Err(Box::new(InputValidationError(format!(
"Value {} is too large. Maximum value is {}.",
parsed_value_param, U256::MAX
parsed_value_param,
U256::MAX
))));
}

Expand Down

0 comments on commit 64666e6

Please sign in to comment.