Skip to content

Commit

Permalink
Fix hash function
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Apr 24, 2017
1 parent 9a9c63f commit 6b83ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deposit.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import argparse
from sha3 import sha3_256
from sha3 import keccak_256
import sys
from web3 import Web3, RPCProvider

Expand Down Expand Up @@ -40,7 +40,7 @@ def check_addresses(contract, addresses):
yield address

def make_hashes(addresses):
return [sha3_256(address.decode('hex')).digest()[:16] for address in addresses]
return [keccak_256(address.decode('hex')).digest()[:16] for address in addresses]


def chunk(l, n):
Expand Down

0 comments on commit 6b83ab7

Please sign in to comment.