From e040383fa5f7602c2bd2390b01cbbc213968dc66 Mon Sep 17 00:00:00 2001 From: David Terry Date: Tue, 9 Oct 2018 14:10:42 +0300 Subject: [PATCH] vat.fold: add test for signature generation --- pkg/transformers/shared/event_signature_generator_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/transformers/shared/event_signature_generator_test.go b/pkg/transformers/shared/event_signature_generator_test.go index 3bed6e80..e19cdc3e 100644 --- a/pkg/transformers/shared/event_signature_generator_test.go +++ b/pkg/transformers/shared/event_signature_generator_test.go @@ -119,6 +119,13 @@ var _ = Describe("Event signature generator", func() { 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() { expected := "deal(uint256)" actual := shared.GetSolidityMethodSignature(shared.FlipperABI, "deal")