Skip to content

Commit

Permalink
test: Change default state transition test sender (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast authored Apr 25, 2023
1 parent 8708f24 commit 2b7194e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/unittests/state_transition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class state_transition : public testing::Test
{
protected:
/// The default sender address of the test transaction.
/// Private key: 0xa45355879.
static constexpr auto Sender = 0xe100DeB58f38F7fd62d14E37e2Fe9ce019Aa001e_address;
/// Private key: 0x2b1263d2b.
static constexpr auto Sender = 0xe100713FC15400D1e94096a545879E7c6407001e_address;

/// The default destination address of the test transaction.
static constexpr auto To = 0xc0de_address;
Expand Down
3 changes: 2 additions & 1 deletion test/unittests/state_transition_block_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ using namespace evmone::test;

TEST_F(state_transition, block_apply_withdrawal)
{
static constexpr auto withdrawal_address = 0x8ef300b6a6a0b41e4f5d717074d9fd5c605c7285_address;
static constexpr auto withdrawal_address = 0x8888_address;

block.withdrawals = {{withdrawal_address, 3}};
tx.to = To;
expect.post[withdrawal_address].balance = intx::uint256{3} * 1'000'000'000;
}
2 changes: 1 addition & 1 deletion test/unittests/state_transition_create_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TEST_F(state_transition, create2_factory)

TEST_F(state_transition, create_tx)
{
static constexpr auto create_address = 0x8ef300b6a6a0b41e4f5d717074d9fd5c605c7285_address;
static constexpr auto create_address = 0x3442a1dec1e72f337007125aa67221498cdd759d_address;

tx.data = mstore8(0, push(0xFE)) + ret(0, 1);

Expand Down

0 comments on commit 2b7194e

Please sign in to comment.