Update to ethers 1.0

Removes rust_decimal as a depend, which added borsh and multiple other misc
packages in the previous commit.
This commit is contained in:
Luke Parker
2022-12-07 18:05:06 -05:00
parent bade7a504e
commit bec92c10ad
3 changed files with 163 additions and 329 deletions

View File

@@ -19,7 +19,7 @@ abigen!(
pub async fn deploy_schnorr_verifier_contract(
client: Arc<SignerMiddleware<Provider<Http>, LocalWallet>>,
) -> Result<schnorr_mod::Schnorr<SignerMiddleware<Provider<Http>, LocalWallet>>> {
) -> Result<Schnorr<SignerMiddleware<Provider<Http>, LocalWallet>>> {
let path = "./artifacts/Schnorr.sol/Schnorr.json";
let artifact: ContractBytecode = serde_json::from_reader(File::open(path).unwrap()).unwrap();
let abi = artifact.abi.unwrap();
@@ -31,7 +31,7 @@ pub async fn deploy_schnorr_verifier_contract(
}
pub async fn call_verify(
contract: &schnorr_mod::Schnorr<SignerMiddleware<Provider<Http>, LocalWallet>>,
contract: &Schnorr<SignerMiddleware<Provider<Http>, LocalWallet>>,
params: &ProcessedSignature,
) -> Result<()> {
if contract