Format for bytes32 passed into uint256

A contract is expecting a keccak256 value as a uint256 parameter. What format should I use for the value when calling it with Defender's webapp with a new proposal?

For example:

function solidityFunction(uint256 really_a_keccak_hash) public {
....
}

Calling it in ethers:
solidityFunction('0xb3e53bff87a96979079674767cfa1a09f3cf2847ba695cbaae933c232f4bf7f0')

How should I enter that hex value in the textbox to call this function from Defender's web interface?

  1. the hex value
  2. hex value in string
  3. convert to Decimal or BigNumber

Thanks.

Hey @plasticman! For integer values, Defender expects a decimal string, so the value you shared would be 81369021966346645727988254647861538413230094753131176000307650954407942289392.

Thank you very much for your help!

1 Like