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

We should error if the contract deploy header is provided with undefined or invalid values #171

Open
armaniferrante opened this issue Mar 28, 2019 · 3 comments

Comments

@armaniferrante
Copy link
Contributor

The following should error on the client side:


contract.deploy({
          data: bytecode,
          header: {
            confidential: undefined,
            expiry: undefined
        }
}).send();
@armaniferrante armaniferrante changed the title We should error if the contract deploy header is provided with undefined values We should error if the contract deploy header is provided with undefined or invalid values Mar 28, 2019
@eauge
Copy link
Contributor

eauge commented Apr 1, 2019

@armaniferrante why should this error? I assume this should be the same as

contract.deploy({
          data: bytecode,
          header: {}
}).send();

Should this also error?

@armaniferrante
Copy link
Contributor Author

armaniferrante commented Apr 1, 2019

I don't think that should error. However, confidential: 12354 or expiry: "have a nice day" should probably error.

@eauge
Copy link
Contributor

eauge commented Apr 1, 2019

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

No branches or pull requests

2 participants