-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix!: encoding capacity overflow #1249
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still going through the whole PR, but something caught my attention. But so far, great job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick update on this: This is neat, good job @iqdecay. I'm 70% through it. I should finish this last pass very soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just left some questions/nits. But other than those, LGTM.
packages/fuels-code-gen/src/program_bindings/abigen/bindings/function_generator.rs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found some small nits that will improve the DevEx
packages/fuels-code-gen/src/program_bindings/abigen/bindings/contract.rs
Outdated
Show resolved
Hide resolved
packages/fuels-code-gen/src/program_bindings/abigen/bindings/contract.rs
Outdated
Show resolved
Hide resolved
packages/fuels-code-gen/src/program_bindings/abigen/bindings/contract.rs
Outdated
Show resolved
Hide resolved
packages/fuels-code-gen/src/program_bindings/abigen/bindings/contract.rs
Outdated
Show resolved
Hide resolved
packages/fuels-code-gen/src/program_bindings/abigen/bindings/contract.rs
Outdated
Show resolved
Hide resolved
packages/fuels-code-gen/src/program_bindings/abigen/bindings/script.rs
Outdated
Show resolved
Hide resolved
packages/fuels-code-gen/src/program_bindings/abigen/bindings/script.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: hal3e <git@hal3e.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turned out great. Safe with no dex damage.
packages/fuels-code-gen/src/program_bindings/abigen/configurables.rs
Outdated
Show resolved
Hide resolved
f6709bc
…les.rs Co-authored-by: Ahmed Sagdati <37515857+segfault-magnet@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bring it home. Great work, @iqdecay!
capacity overflow
while encoding param types #1228 by adding theEncoderConfig
similarly to what was done in bug: fix for memory issue #1066.call()
orsimulate()
is called on contract or script calls.BREAKING CHANGE:
Configurables
structs now need to be instantiated through a::new(encoder_config)
or::default()
method.Configurables::with_some_string_config(some_string)
methods now return aResult<Configurables>
instead ofConfigurables
.Predicates::encode_data
now returns aResult<UnresolvedBytes>
instead ofUnresolvedBytes
.PredicateEncoder
structs must be instantiated through a::new(encoder_config)
or::default()
method.