fix bug after merged feat/record_transaction branch.

This commit is contained in:
maskpp
2023-04-19 11:16:07 +08:00
parent bf6b17d1da
commit cd653d1997
4 changed files with 15 additions and 15 deletions

View File

@@ -55,7 +55,7 @@ func (t *scrollTxOrm) SetScrollTxConfirmedByID(id string, txHash string) error {
// GetScrollTxs get scroll txs by params.
func (t *scrollTxOrm) GetScrollTxs(fields map[string]interface{}, args ...string) ([]*stypes.ScrollTx, error) {
query := "select id, tx_hash, sender, nonce, target, value, data, extra_data from scroll_transaction where 1 = 1"
query := "select id, tx_hash, sender, nonce, target, value, data, note from scroll_transaction where 1 = 1"
for key := range fields {
query = query + fmt.Sprintf(" AND %s = :%s", key, key)
}