compose and execute as separate commands; update README and add git checkout vendor/github.com/ethereum/go-ethereum/accounts/abi to make build
This commit is contained in:
@@ -112,7 +112,7 @@ var _ = Describe("Parser", func() {
|
||||
Expect(abiTy).To(Equal(abi.UintTy))
|
||||
|
||||
pgTy = e.Fields[2].PgType
|
||||
Expect(pgTy).To(Equal("DECIMAL"))
|
||||
Expect(pgTy).To(Equal("NUMERIC"))
|
||||
|
||||
_, ok = events["Approval"]
|
||||
Expect(ok).To(Equal(false))
|
||||
@@ -143,7 +143,7 @@ var _ = Describe("Parser", func() {
|
||||
Expect(abiTy).To(Equal(abi.UintTy))
|
||||
|
||||
pgTy = balOf.Return[0].PgType
|
||||
Expect(pgTy).To(Equal("DECIMAL"))
|
||||
Expect(pgTy).To(Equal("NUMERIC"))
|
||||
|
||||
})
|
||||
|
||||
@@ -200,7 +200,7 @@ var _ = Describe("Parser", func() {
|
||||
Expect(abiTy).To(Equal(abi.UintTy))
|
||||
|
||||
pgTy = balOf.Return[0].PgType
|
||||
Expect(pgTy).To(Equal("DECIMAL"))
|
||||
Expect(pgTy).To(Equal("NUMERIC"))
|
||||
|
||||
})
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ func NewEvent(e abi.Event) Event {
|
||||
case abi.HashTy, abi.AddressTy:
|
||||
fields[i].PgType = "CHARACTER VARYING(66)"
|
||||
case abi.IntTy, abi.UintTy:
|
||||
fields[i].PgType = "DECIMAL"
|
||||
fields[i].PgType = "NUMERIC"
|
||||
case abi.BoolTy:
|
||||
fields[i].PgType = "BOOLEAN"
|
||||
case abi.BytesTy, abi.FixedBytesTy:
|
||||
|
||||
@@ -53,7 +53,7 @@ func NewMethod(m abi.Method) Method {
|
||||
case abi.HashTy, abi.AddressTy:
|
||||
inputs[i].PgType = "CHARACTER VARYING(66)"
|
||||
case abi.IntTy, abi.UintTy:
|
||||
inputs[i].PgType = "DECIMAL"
|
||||
inputs[i].PgType = "NUMERIC"
|
||||
case abi.BoolTy:
|
||||
inputs[i].PgType = "BOOLEAN"
|
||||
case abi.BytesTy, abi.FixedBytesTy:
|
||||
@@ -77,7 +77,7 @@ func NewMethod(m abi.Method) Method {
|
||||
case abi.HashTy, abi.AddressTy:
|
||||
outputs[i].PgType = "CHARACTER VARYING(66)"
|
||||
case abi.IntTy, abi.UintTy:
|
||||
outputs[i].PgType = "DECIMAL"
|
||||
outputs[i].PgType = "NUMERIC"
|
||||
case abi.BoolTy:
|
||||
outputs[i].PgType = "BOOLEAN"
|
||||
case abi.BytesTy, abi.FixedBytesTy:
|
||||
|
||||
Reference in New Issue
Block a user