You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
321 B

  1. package test
  2. import "github.com/jmoiron/sqlx"
  3. // CleanL2DB deletes 'tx_pool' and 'account_creation_auth' from the given DB
  4. func CleanL2DB(db *sqlx.DB) {
  5. if _, err := db.Exec("DELETE FROM tx_pool"); err != nil {
  6. panic(err)
  7. }
  8. if _, err := db.Exec("DELETE FROM account_creation_auth"); err != nil {
  9. panic(err)
  10. }
  11. }