Skip to content

Commit

Permalink
Merge pull request #25 from encody/fix/ci-pin-rust-version-1.78.0
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
anthony-near authored Aug 5, 2024
2 parents e910f17 + d181037 commit 0ad3dd6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
5 changes: 2 additions & 3 deletions gas_station/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,9 +622,8 @@ async fn test_workflow_happy_path() {

let signed_transaction_bytes = hex::decode(&signed_tx_2).unwrap();
let signed_transaction_rlp = Rlp::new(&signed_transaction_bytes);
let (_tx, _s) = TypedTransaction::decode_signed(&signed_transaction_rlp).unwrap();
// IGNORE: due to not having a real MPC to mock and not actually deriving keys
assert_eq!(alice_foreign_address, _tx.from().unwrap().into());
let (signed_tx, _s) = TypedTransaction::decode_signed(&signed_transaction_rlp).unwrap();
assert_eq!(alice_foreign_address, signed_tx.from().unwrap().into());

let signed_transaction_sequences = gas_station
.view("list_signed_transaction_sequences_after")
Expand Down
16 changes: 0 additions & 16 deletions mock/signer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,3 @@ impl SignerInterface for MockSignerContract {
KEY_VERSION
}
}

#[test]
fn test() {
let predecessor: AccountId = "account.near".parse().unwrap();
let path = "".to_string();
let signing_key = construct_spoof_key(predecessor.as_bytes(), path.as_bytes());
let verifying_key = signing_key.verifying_key();
let encoded = verifying_key.to_encoded_point(false);

let r = PublicKey::from_parts(
near_sdk::CurveType::SECP256K1,
encoded.to_bytes()[1..].to_vec(),
);

println!("{r:?}");
}
5 changes: 5 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[toolchain]
channel = "1.78.0"
profile = "default"
components = []
targets = ["wasm32-unknown-unknown"]

0 comments on commit 0ad3dd6

Please sign in to comment.