Skip to content

Commit

Permalink
Fix bug in contract deployer for guessing game arg (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel authored Aug 26, 2022
1 parent 7d041fd commit db7143b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/contractdeployer/contract_deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func getContractCode(cfg *Config) ([]byte, error) {
if err != nil {
return nil, err
}
address := common.BytesToAddress(common.Hex2Bytes(cfg.ConstructorParams[1]))
address := common.HexToAddress(cfg.ConstructorParams[1])

return guessinggame.Bytecode(uint8(size), address)

Expand Down

0 comments on commit db7143b

Please sign in to comment.