Skip to content

Commit

Permalink
update C++ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f committed Oct 15, 2024
1 parent 03f59c1 commit c670211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/chains/Pactus/SignerTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TEST(PactusSigner, Sign) {
ANY_SIGN(input, TWCoinTypePactus);

EXPECT_EQ(output.error(), Common::Proto::OK);
ASSERT_EQ(hex(output.signed_transaction_data()), "000101020300e807047465737401037098338e0b6808119dfd4457ab806b9c2059b89b037a14ae24533816e7faaa6ed28fcdde8e55a7df21a09c0150ac25c7125271489b0cd230549257c93fb8c6265f2914a988ba7b81c1bc47fff027412dd59447867911035ff69742d171060a1f132ac38b95acc6e39ec0bd0995794161374b22c696dabb98e93f6ca9300b22f3b904921fbf560bb72145f4fa");
ASSERT_EQ(hex(output.signature()), "50ac25c7125271489b0cd230549257c93fb8c6265f2914a988ba7b81c1bc47fff027412dd59447867911035ff69742d171060a1f132ac38b95acc6e39ec0bd09");
ASSERT_EQ(hex(output.transaction_id()), "34cd4656a98f7eb996e83efdc384cefbe3a9c52dca79a99245b4eacc0b0b4311");
ASSERT_EQ(hex(output.signed_transaction_data()), TransferTransaction1::SIGNED_TRANSACTION_DATA);
ASSERT_EQ(hex(output.signature()), TransferTransaction1::SIGNATURE);
ASSERT_EQ(hex(output.transaction_id()), TransferTransaction1::TRANSACTION_ID);
}
2 changes: 0 additions & 2 deletions tests/chains/Pactus/TestCases.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ static TW::Pactus::Proto::SigningInput createSigningInput() {
}

const std::string PRIVATE_KEY_HEX = "4e51f1f3721f644ac7a193be7f5e7b8c2abaa3467871daf4eacb5d3af080e5d6";
const std::string PRE_HASH =
"b5e97db07fa0bd0e5598aa3643a9bc6f6693bddc1a9fec9e674a461eaa00b19307968dab936c1bad187c60ce4082f307d030d780e91e694ae03aef16aba73f3063000000000000000200000000000000000000000000000000000000000000000000000000000000010d6170746f735f6163636f756e74087472616e7366657200022007968dab936c1bad187c60ce4082f307d030d780e91e694ae03aef16aba73f3008e803000000000000fe4d3200000000006400000000000000c2276ada0000000021";
const std::string SIGNATURE =
"50ac25c7125271489b0cd230549257c93fb8c6265f2914a988ba7b81c1bc47fff027412dd59447867911035ff69742d171060a1f132ac38b95acc6e39ec0bd09";
const std::string DATA_TO_SIGN =
Expand Down

0 comments on commit c670211

Please sign in to comment.