[golang] implement automation loop and add contract accepting
This commit is contained in:
parent
3dad3f60f2
commit
d97985a694
9 changed files with 223 additions and 64 deletions
|
@ -1,6 +1,6 @@
|
|||
package database
|
||||
|
||||
func (db *DB) AddToken(token string) error {
|
||||
func (db *DB) SaveToken(token string) error {
|
||||
_, err := db.Exec(`INSERT INTO tokens(data) VALUES (?);`, token)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue