Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Increase txtScriptHash.MaxLength to 42 to accommodate 0x prefix #28

Merged
1 commit merged into from
Oct 23, 2017

Conversation

hal0x2328
Copy link
Member

Copy/pasting a scripthash from the latest version of the View Contract dialog into the Invoke Contract dialog causes the last byte to be truncated, because the 42-byte-long scripthash value with the added 0x prefix does not fit into the maximum length of txtScriptHash which is expecting only 40 bytes.

This has led to some confusion for users, because simply removing the 0x from the beginning of the pasted scripthash leaves a truncated scripthash value which is still incorrect. This fix increases the maximum length of the field to 42 bytes to alleviate this.

@ghost ghost merged commit ac3aa5a into CityOfZion:master Oct 23, 2017
notatestuser pushed a commit to notatestuser/neo-gui-developer that referenced this pull request Nov 3, 2017
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant