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:

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


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