onflow / onflow/flow-cli

Flow CLI cannot use struct encoding

Open
#1,627 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Feedback Improvement
Dominant language
Go
Stars
209
Forks
87
Avg merge
1d 17h
Merged PRs (30d)
3

Description

Problem

If you try to specify a struct in your flow.json for contract inputs, it will not work

Steps to Reproduce

Clone and try to deploy this flow project:
https://github.com/austinkline/flow-cli-struct-encoding

Acceptance Criteria

The correct transaction should be generated so that the deployment can work

Context

Working on some contracts that use this type of encoding

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Clone the linked flow-cli-struct-encoding project and inspect its flow.json contract inputs first. Run the deployment to reproduce the failure, then trace how the Flow CLI encodes the specified struct. Done means the correct transaction is generated and the deployment succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.