Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gagliardetto committed Apr 27, 2024
1 parent 5ae2954 commit 7c6835c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions transaction_test.go
Expand Up @@ -83,7 +83,7 @@ func TestNewTransaction(t *testing.T) {

assert.Equal(t, trx.Message.RecentBlockhash, blockhash)

assert.Equal(t, trx.Message.AccountKeys, []PublicKey{
assert.Equal(t, trx.Message.AccountKeys, PublicKeySlice{
MustPublicKeyFromBase58("A9QnpgfhCkmiBSjgBuWk76Wo3HxzxvDopUq9x6UUMmjn"),
MustPublicKeyFromBase58("9hFtYBYmBJCVguRYs9pBTWKYAFoKfjYR7zBPpEkVsmD"),
MustPublicKeyFromBase58("6FzXPEhCJoBx7Zw3SN9qhekHemd6E2b8kVguitmVAngW"),
Expand Down Expand Up @@ -218,7 +218,7 @@ func TestTransactionDecode(t *testing.T) {
)

require.Equal(t,
[]PublicKey{
PublicKeySlice{
MustPublicKeyFromBase58("52NGrUqh6tSGhr59ajGxsH3VnAaoRdSdTbAaV9G3UW35"),
MustPublicKeyFromBase58("SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt"),
MustPublicKeyFromBase58("11111111111111111111111111111111"),
Expand Down
4 changes: 2 additions & 2 deletions transaction_v0_test.go
Expand Up @@ -50,7 +50,7 @@ func TestTransactionV0(t *testing.T) {
require.Equal(t, "2nMjR8mdczMJZZ1XeQ5Y37GxfrRQmaV74eypnD9ggpQMmaWfETq9C5DoGKha4bMamu9tFQQArBAgxzQ5vnng1ZdG", tx.Signatures[0].String())
require.Equal(t, "3x7m4nDNGiZiDgadNtewvHKGcCEWe16QpHo197Azs5ybKNqjzbknuF7VFWeHJ6jowdSeDqVZ2EVgpoq9rNoHvPrM", tx.Signatures[1].String())
require.Equal(t,
[]PublicKey{
PublicKeySlice{
MPK("2m4eNwBVqu6SgFk23HgE3W5MW89yT5z1vspz2WsiFBHF"),
MPK("G6NDx85GM481GPjT5kUBAvjLxzDMsgRMQ1EAxzGswEJn"),
MPK("81o7hHYN5a8fc5wdjjfznK9ziJ9wcuKXwbZnuYpanxMQ"),
Expand Down Expand Up @@ -83,7 +83,7 @@ func TestTransactionV0(t *testing.T) {
{
spew.Dump(tx.Message.AccountKeys)
require.Equal(t,
[]PublicKey{
PublicKeySlice{
MPK("2m4eNwBVqu6SgFk23HgE3W5MW89yT5z1vspz2WsiFBHF"),
MPK("G6NDx85GM481GPjT5kUBAvjLxzDMsgRMQ1EAxzGswEJn"),
MPK("81o7hHYN5a8fc5wdjjfznK9ziJ9wcuKXwbZnuYpanxMQ"),
Expand Down

0 comments on commit 7c6835c

Please sign in to comment.