Skip to content

Commit

Permalink
Revert from_adress change
Browse files Browse the repository at this point in the history
  • Loading branch information
sydhds committed Dec 3, 2024
1 parent 8936dc8 commit d52e62e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions massa-execution-worker/src/tests/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ fn test_evm_signature_verify() {
// build original public key
let private_key = libsecp256k1::SecretKey::parse_slice(&private_key_).unwrap();
let public_key = libsecp256k1::PublicKey::from_secret_key(&private_key);

let result = interface.evm_signature_verify(message_, &signature_, &public_key.serialize());
let public_key_bytes = libsecp256k1::PublicKey::from_secret_key(&private_key).serialize();

// println!("public_key: {:?}", public_key.serialize());

let result = interface.evm_signature_verify(message_, &signature_, &public_key_bytes[0..65]);
assert!(result.is_ok());

// Invalid v
Expand Down
2 changes: 1 addition & 1 deletion massa-execution-worker/src/tests/scenarios_mandatories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3364,7 +3364,7 @@ fn execution_trace_nested() {
SCRuntimeAbiTraceValue {
name: "from_address".to_string(),
value: SCRuntimeAbiTraceType::String(
"AS1Bc3kZ6LhPLJvXV4vcVJLFRExRFbkPWD7rCg9aAdQ1NGzRwgnu".to_string()
"AS1aEhosr1ebJJZ7cEMpSVKbY6xp1p4DdXabGb8fdkKKJ6WphGnR".to_string()
)
},
SCRuntimeAbiTraceValue {
Expand Down

0 comments on commit d52e62e

Please sign in to comment.