Skip to content

Commit

Permalink
fixed SQL exception when saving resolved fn signature
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Dec 1, 2023
1 parent 042aaed commit 1e03800
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ func InsertTxFunctionSignature(txFuncSig *dbtypes.TxFunctionSignature, tx *sqlx.
INSERT INTO tx_function_signatures (
signature, bytes, name
) VALUES ($1, $2, $3)
ON CONFLICT (signature) DO NOTHING`,
ON CONFLICT (bytes) DO NOTHING`,
dbtypes.DBEngineSqlite: `
INSERT OR IGNORE INTO tx_function_signatures (
signature, bytes, name
Expand Down
2 changes: 1 addition & 1 deletion services/fnsignatures.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (tss *TxSignaturesService) processPendingSignatures() {
if len(unknownSigs) > 0 {
err := db.InsertUnknownFunctionSignatures(unknownSigs, tx)
if err != nil {
logger_tss.Warnf("error saving resolved signature: %v", err)
logger_tss.Warnf("error saving unknown signature: %v", err)
}
}
for _, fnsig := range resolvedSigs {
Expand Down

0 comments on commit 1e03800

Please sign in to comment.