From 857e6ebef9e14566a60ca020c0cccc8f82111dcc Mon Sep 17 00:00:00 2001 From: fuyuton Date: Fri, 8 Mar 2019 01:33:41 +0900 Subject: [PATCH] Update formatter.rb fix typo --- lib/ethereum/formatter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ethereum/formatter.rb b/lib/ethereum/formatter.rb index 5316b7b..9ce9dc3 100644 --- a/lib/ethereum/formatter.rb +++ b/lib/ethereum/formatter.rb @@ -112,7 +112,7 @@ def uint_to_payload(uint) end def int_to_payload(int) - self.to_twos_complement(uint).rjust(64, '0') + self.to_twos_complement(int).rjust(64, '0') end def bytes_to_payload(bytes)