forked from cerc-io/ipld-eth-server
e1f609528d
- file event on the pit contract is overloaded and each implementation logs a note - existing Pit file transformer now specified as dealing with ilks
21 lines
608 B
Go
21 lines
608 B
Go
package ilk_test
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/pit_file/ilk"
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/shared"
|
|
"github.com/vulcanize/vulcanizedb/pkg/transformers/test_data"
|
|
)
|
|
|
|
var _ = Describe("Pit file ilk converter", func() {
|
|
It("converts a log to an model", func() {
|
|
converter := ilk.PitFileIlkConverter{}
|
|
|
|
model, err := converter.ToModel(test_data.PitAddress, shared.PitABI, test_data.EthPitFileIlkLog)
|
|
|
|
Expect(err).NotTo(HaveOccurred())
|
|
Expect(model).To(Equal(test_data.PitFileIlkModel))
|
|
})
|
|
})
|