Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Attempting to encode string that is too long for variable gives back error message #852

Open
corpetty opened this issue Jan 9, 2018 · 1 comment

Comments

@corpetty
Copy link

corpetty commented Jan 9, 2018

I tried encoding a 64-length UTF-8 string using ethereum.abi.ContractTranslator.encode() to a function requiring a bytes32 variable, and recieved the error message "string must be utf8 encoded" instead of anything regarding length.

Type length error checking would save many people time when debugging what they're trying to encode with.

@corpetty
Copy link
Author

corpetty commented Jan 13, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant