diff --git a/gno_github_agent/.env b/gno_github_agent/.env index d0abb68d7b..bbf87b4010 100644 --- a/gno_github_agent/.env +++ b/gno_github_agent/.env @@ -1,5 +1,5 @@ -GNO_MNEMONIC=source bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast -GNO_CHAIN_ID=test4 -GNO_RPC_ADDR=https://rpc.test4.gno.land:443 -GNO_REALM_PATH=gno.land/r/teritori/ghverify -GNO_TX_INDEXER=https://indexer.test4.gno.testnet.teritori.com \ No newline at end of file +GNO_MNEMONIC= +GNO_CHAIN_ID= +GNO_RPC_ADDR= +GNO_REALM_PATH= +GNO_TX_INDEXER= \ No newline at end of file diff --git a/gno_github_agent/clientql/client.go b/gno_github_agent/clientql/client.go index de40e902bb..2d416b08e7 100644 --- a/gno_github_agent/clientql/client.go +++ b/gno_github_agent/clientql/client.go @@ -72,7 +72,7 @@ func (client *IndexerQL) getLastTreatedBlock() (int, error) { return 0, nil } - return 0, nil + return 0, err } return verification.BlockHeight, err } @@ -81,10 +81,10 @@ func (client *IndexerQL) dealWithVerification(event *gnoindexerql.GetValidationR var handle string var callerAddress string for _, attr := range event.Attrs { - if attr.Key == "handle" { + switch attr.Key { + case "handle": handle = attr.Value - } - if attr.Key == "from" { + case "from": callerAddress = attr.Value } }