vat.fold: add test for signature generation

This commit is contained in:
David Terry 2018-10-09 14:10:42 +03:00
parent 5cc4748f10
commit e040383fa5

View File

@ -119,6 +119,13 @@ var _ = Describe("Event signature generator", func() {
Expect(expected).To(Equal(actual)) Expect(expected).To(Equal(actual))
}) })
It("gets the vat init method signature", func() {
expected := "fold(bytes32,bytes32,int256)"
actual := shared.GetSolidityMethodSignature(shared.VatABI, "fold")
Expect(expected).To(Equal(actual))
})
It("gets the flip deal method signature", func() { It("gets the flip deal method signature", func() {
expected := "deal(uint256)" expected := "deal(uint256)"
actual := shared.GetSolidityMethodSignature(shared.FlipperABI, "deal") actual := shared.GetSolidityMethodSignature(shared.FlipperABI, "deal")