arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
Fix hez addr format for exits
Arnau B arnaubennassar5@gmail.com
Wed, 09 Dec 2020 14:04:15 +0100
commit

a50ddbe4e0d5103b3c57fa830e309caeb8d78d1c

parent

87501276ce7938ca2d27d6da519d8957b55e928e

2 files changed, 0 insertions(+), 8 deletions(-)

jump to
M api/parsers.go → api/parsers.go

@@ -14,8 +14,6 @@ "github.com/hermeznetwork/tracerr"

"github.com/iden3/go-iden3-crypto/babyjub" ) -const exitIdx = "hez:EXIT:1" - // Query parsers type querier interface {

@@ -453,8 +451,5 @@ return "hez:" + addr.String()

} func idxToHez(idx common.Idx, tokenSymbol string) string { - if idx == 1 { - return exitIdx - } return "hez:" + tokenSymbol + ":" + strconv.Itoa(int(idx)) }
M db/migrations/0001.sql → db/migrations/0001.sql

@@ -85,9 +85,6 @@ RETURNS VARCHAR

AS $BODY$ BEGIN - IF $1 = 1 THEN - RETURN 'hez:EXIT:1'; - END IF; RETURN 'hez:' || $2 || ':' || $1; END; $BODY$