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

Error loading transfer from JSON #357

Open
3 tasks
meywood opened this issue Aug 7, 2023 · 0 comments
Open
3 tasks

Error loading transfer from JSON #357

meywood opened this issue Aug 7, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@meywood
Copy link

meywood commented Aug 7, 2023

TypeError: Cannot read properties of undefined (reading 'toBytes')
The following exception is thrown when reading the attached JSON:
transfer.json.txt

To Reproduce

        const buf  = fs.readFileSync(`./src/json//transfer.json.`);
        expect(buf).to.not.be.undefined;
        // JavaScript SDK requires deploy prefix to attempt to deseirialise 
        const parsedJson: any = { deploy: JSON.parse(buf.toString()) };
        const transfer : Deploy = this.casperClient.deployFromJson(parsedJson).unwrap();
        expect(transfer).to.not.be.null;
        this.contextMap.put("transfer", transfer);

Steps to reproduce the behavior:

  1. Go to '...'
  2. ..

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Defect Type

  • Regression
  • New
  • Escape
@meywood meywood added the bug Something isn't working label Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@meywood and others