-
Notifications
You must be signed in to change notification settings - Fork 5.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
Allow dynamic types in configurables #6760
Open
xunilrj
wants to merge
14
commits into
master
Choose a base branch
from
xunilrj/dynamic-types-configurables
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fd9bbe0
allow indirect configurables for dynamic types such as vec, slices et…
xunilrj bb63fd2
support for string slice
xunilrj 03c74fa
fix datasection offset
xunilrj d25bf97
fmt and clippy issue
xunilrj 16737c7
indirect flag for configurables inside the abi json
xunilrj 8c3c42e
using remote repos
xunilrj 83af3b4
update to newer branches
xunilrj d50fb27
update contract-ids
xunilrj 95d6aa1
fmt and clippy issues
xunilrj 67eef1b
Vec::new now returns a null pointer
xunilrj 0686596
fix tests
xunilrj e88ae58
using pretty print
xunilrj 4a625ca
fixing tests
xunilrj 5ee6a00
Merge branch 'master' into xunilrj/dynamic-types-configurables
sdankel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -1198,13 +1198,14 @@ async fn call_with_forc_generated_overrides(node_url: &str, contract_id: Contrac | |||
// we are ensuring forc-deploy indeed generated the files we are basing our | ||||
// tests below. | ||||
let generated_loader_abi_path = tmp_dir.path().join("out/deployed_script-loader-abi.json"); | ||||
let generated_loader_abi = fs::read_to_string(generated_loader_abi_path).unwrap(); | ||||
let generated_loader_abi = fs::read_to_string(&generated_loader_abi_path).unwrap(); | ||||
|
||||
// this path is basically, `forc-plugins/forc-client/test/data/deployed_script/deployed_script-loader-abi.json`. | ||||
let used_loader_abi_path = project_dir.join("deployed_script-loader-abi.json"); | ||||
let used_loader_abi = fs::read_to_string(used_loader_abi_path).unwrap(); | ||||
let used_loader_abi = fs::read_to_string(&used_loader_abi_path).unwrap(); | ||||
|
||||
assert_eq!(generated_loader_abi, used_loader_abi); | ||||
dbg!(&generated_loader_abi_path, &used_loader_abi_path); | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
pretty_assertions::assert_eq!(generated_loader_abi, used_loader_abi); | ||||
|
||||
let generated_loader_bin = tmp_dir.path().join("out/deployed_script-loader.bin"); | ||||
abigen!(Script( | ||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is the plan to wait for the
fuels
branches to be merged this PR goes out?