Skip to content

Commit

Permalink
Update addessFromPrivateKey to secretKeyToAddressString in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Doy-lee committed Apr 17, 2024
1 parent f820e40 commit 38aaeb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/ethereum_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ TEST_CASE( "SigningTest", "[signer]" ) {
TEST_CASE( "Get address from private key", "[signer]" ) {
std::vector<unsigned char> seckey = utils::fromHexString(std::string(PRIVATE_KEY));
Signer signer;
std::string created_address = signer.addressFromPrivateKey(seckey);
std::string created_address = signer.secretKeyToAddressString(seckey);
REQUIRE( created_address == ADDRESS );
}

Expand Down

0 comments on commit 38aaeb6

Please sign in to comment.