Method: EvmClient::Formatter#to_twos_complement

Defined in:
lib/evm_client/formatter.rb

#to_twos_complement(number) ⇒ Object



97
98
99
# File 'lib/evm_client/formatter.rb', line 97

def to_twos_complement(number)
  (number & ((1 << 256) - 1)).to_s(16)
end