Skip to content

Commit

Permalink
fix freegas insert db (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhinei authored Jun 18, 2024
1 parent 71dc503 commit b87a614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool/pgpoolstorage/pgpoolstorage_xlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (p *PostgresPoolStorage) IsFreeGasAddr(ctx context.Context, addr common.Add

// AddFreeGasAddr add free gas address
func (p *PostgresPoolStorage) AddFreeGasAddr(ctx context.Context, addr common.Address) error {
sql := `INSERT INTO pool.free_gas(addr) VALUES ($1)`
sql := `INSERT INTO pool.free_gas(addr) VALUES ($1) ON CONFLICT(addr) do NOTHING`

_, err := p.db.Exec(ctx, sql, addr.String())
if err != nil {
Expand Down

0 comments on commit b87a614

Please sign in to comment.