@@ -16,7 +16,7 @@ var mockMempoolQuery = &MempoolQuery{
16
16
TableName : "mempool" ,
17
17
Fields : []string {
18
18
"id" , "fee_per_byte" , "arrival_timestamp" , "transaction_bytes" ,
19
- "sender_account_id " , "recipient_account_id " ,
19
+ "sender_account_address " , "recipient_account_address " ,
20
20
},
21
21
}
22
22
@@ -67,8 +67,8 @@ func TestMempoolQuery_getTableName(t *testing.T) {
67
67
func TestMempoolQuery_GetMempoolTransactions (t * testing.T ) {
68
68
t .Run ("GetMempoolTransactions:success" , func (t * testing.T ) {
69
69
q := mockMempoolQuery .GetMempoolTransactions ()
70
- wantQ := "SELECT id, fee_per_byte, arrival_timestamp, transaction_bytes, sender_account_id " +
71
- ", recipient_account_id FROM mempool"
70
+ wantQ := "SELECT id, fee_per_byte, arrival_timestamp, transaction_bytes, sender_account_address " +
71
+ ", recipient_account_address FROM mempool"
72
72
if q != wantQ {
73
73
t .Errorf ("query returned wrong: get: %s\n want: %s" , q , wantQ )
74
74
}
@@ -78,8 +78,8 @@ func TestMempoolQuery_GetMempoolTransactions(t *testing.T) {
78
78
func TestMempoolQuery_GetMempoolTransaction (t * testing.T ) {
79
79
t .Run ("GetMempoolTransaction:success" , func (t * testing.T ) {
80
80
q := mockMempoolQuery .GetMempoolTransaction ()
81
- wantQ := "SELECT id, fee_per_byte, arrival_timestamp, transaction_bytes, sender_account_id ," +
82
- " recipient_account_id FROM mempool WHERE id = :id"
81
+ wantQ := "SELECT id, fee_per_byte, arrival_timestamp, transaction_bytes, sender_account_address ," +
82
+ " recipient_account_address FROM mempool WHERE id = :id"
83
83
if q != wantQ {
84
84
t .Errorf ("query returned wrong: get: %s\n want: %s" , q , wantQ )
85
85
}
@@ -89,9 +89,9 @@ func TestMempoolQuery_GetMempoolTransaction(t *testing.T) {
89
89
func TestMempoolQuery_InsertMempoolTransaction (t * testing.T ) {
90
90
t .Run ("InsertMempoolTransaction:success" , func (t * testing.T ) {
91
91
q := mockMempoolQuery .InsertMempoolTransaction ()
92
- wantQ := "INSERT INTO mempool (id, fee_per_byte, arrival_timestamp, transaction_bytes, sender_account_id ," +
93
- " recipient_account_id ) VALUES(:id, :fee_per_byte, :arrival_timestamp, :transaction_bytes," +
94
- " :sender_account_id , :recipient_account_id )"
92
+ wantQ := "INSERT INTO mempool (id, fee_per_byte, arrival_timestamp, transaction_bytes, sender_account_address ," +
93
+ " recipient_account_address ) VALUES(:id, :fee_per_byte, :arrival_timestamp, :transaction_bytes," +
94
+ " :sender_account_address , :recipient_account_address )"
95
95
if q != wantQ {
96
96
t .Errorf ("query returned wrong: get: %s\n want: %s" , q , wantQ )
97
97
}
0 commit comments