Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to deploy a contract with byte type in initial storage. #265

Closed
baahkusi opened this issue Mar 28, 2020 · 1 comment
Closed

unable to deploy a contract with byte type in initial storage. #265

baahkusi opened this issue Mar 28, 2020 · 1 comment
Assignees
Projects

Comments

@baahkusi
Copy link

Here is my code with a contract having byte type as initial storage.
https://github.com/baahkusi/tezos-secrets-store/blob/master/secrets/src/contract.js
In this JS file I have the same contract in michelson an micheline format.

When I use the micheline format I get the error as I have reported here https://tezos.stackexchange.com/questions/2367/i-got-this-error-from-conseil-js-tezosnodewriter-sendcontractoriginationoperatio.

when I use the michelson format I get the following errors

"[proto.006-PsCARTHA.michelson_v1.ill_typed_data,proto.006-PsCARTHA.invalidSyntacticConstantError,proto.006-PsCARTHA.invalidSyntacticConstantError,proto.006-PsCARTHA.michelson_v1.invalid_expression_kind]"

The problem seems to come from conseiljs since the same contract has been deployed with tezos-client and works just fine.

Here is also main code for deployment https://github.com/baahkusi/tezos-secrets-store/blob/072c3d07a23d05872663647eb11d10e0b6c68535/secrets/src/main.js#L90

@anonymoussprocket anonymoussprocket self-assigned this Mar 28, 2020
@anonymoussprocket
Copy link
Contributor

The issue is encoding of bytes-type.

anonymoussprocket added a commit that referenced this issue Mar 28, 2020
- updated web dist
@anonymoussprocket anonymoussprocket added this to To do in 0.4 via automation Mar 28, 2020
0.4 automation moved this from To do to Done Mar 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
0.4
  
Done
Development

No branches or pull requests

2 participants