Merge pull request #39 from CirclesUBI/fix_foundry
Fix foundry install.
This commit is contained in:
commit
64666e625a
2 changed files with 4 additions and 3 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
||||||
target
|
target
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
|
||||||
- name: Setup PATH
|
- name: Setup PATH
|
||||||
run: echo ~/.foundry/bin/ >> $GITHUB_PATH
|
run: echo ~/.config/.foundry/bin/ >> $GITHUB_PATH
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: curl -L https://foundry.paradigm.xyz | bash && foundryup
|
run: curl -L https://foundry.paradigm.xyz | bash && foundryup
|
||||||
- name: Format
|
- name: Format
|
||||||
|
|
|
@ -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::edge::EdgeDB;
|
||||||
use crate::types::{Address, Edge, U256};
|
use crate::types::{Address, Edge, U256};
|
||||||
use json::JsonValue;
|
use json::JsonValue;
|
||||||
|
use num_bigint::BigUint;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::fmt::{Debug, Display, Formatter};
|
use std::fmt::{Debug, Display, Formatter};
|
||||||
use std::io::Read;
|
use std::io::Read;
|
||||||
|
@ -13,7 +14,6 @@ use std::str::FromStr;
|
||||||
use std::sync::mpsc::TrySendError;
|
use std::sync::mpsc::TrySendError;
|
||||||
use std::sync::{mpsc, Arc, Mutex, RwLock};
|
use std::sync::{mpsc, Arc, Mutex, RwLock};
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use num_bigint::BigUint;
|
|
||||||
|
|
||||||
struct JsonRpcRequest {
|
struct JsonRpcRequest {
|
||||||
id: JsonValue,
|
id: JsonValue,
|
||||||
|
@ -171,7 +171,8 @@ fn compute_transfer(
|
||||||
if parsed_value_param > U256::MAX.into() {
|
if parsed_value_param > U256::MAX.into() {
|
||||||
return Err(Box::new(InputValidationError(format!(
|
return Err(Box::new(InputValidationError(format!(
|
||||||
"Value {} is too large. Maximum value is {}.",
|
"Value {} is too large. Maximum value is {}.",
|
||||||
parsed_value_param, U256::MAX
|
parsed_value_param,
|
||||||
|
U256::MAX
|
||||||
))));
|
))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue