Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Replace TypedTransactionType #11089

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jenpaff
Copy link
Collaborator

@jenpaff jenpaff commented Sep 21, 2024

Towards closing #7490

Quick vibe check if I'm going the right way here

let secret =
SecretKey::from_str("4646464646464646464646464646464646464646464646464646464646464646")
.unwrap();
let accounts = HashMap::from([(Address::default(), secret)]);
// TODO: is there a better way to get the address from the secret key?
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if there's a better way

let txn_signed = signer.sign_transaction(request, &from).await;
assert!(txn_signed.is_ok());

assert_eq!(Bytes::from(message.to_vec()), txn_signed.unwrap().input().0);
Copy link
Collaborator Author

@jenpaff jenpaff Sep 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably also assert on signature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant