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

Add support for nested user-defined struct types #55

Merged
merged 8 commits into from
Jan 19, 2022

Conversation

moodlezoup
Copy link
Contributor

@moodlezoup moodlezoup commented Dec 22, 2021

Description

Adds an optional parameter to AbiEncoder.create so that you can pass in user-defined types referenced by the primary type

Testing instructions

Types of changes

Checklist:

  • Prefix PR title with [WIP] if necessary.
  • Add tests to cover changes as needed.
  • Update documentation as needed.
  • Add new entries to the relevant CHANGELOG.jsons.

@moodlezoup moodlezoup force-pushed the feat/abi-encoder-nested-structs branch from 374953e to 1ba95ee Compare January 15, 2022 00:35
Comment on lines +62 to +63
// https://github.com/0xProject/0x-monorepo/issues/2000
describe.skip('with an existing output file', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why these started failing on CI

@moodlezoup moodlezoup marked this pull request as ready for review January 15, 2022 00:56
@moodlezoup moodlezoup force-pushed the feat/abi-encoder-nested-structs branch from b190eb2 to 8317345 Compare January 15, 2022 02:04
@moodlezoup moodlezoup requested a review from dekz as a code owner January 15, 2022 21:02
@moodlezoup moodlezoup force-pushed the feat/abi-encoder-nested-structs branch from 068bd55 to a961463 Compare January 15, 2022 21:17
@@ -15,7 +15,7 @@
"build:ci": "yarn build",
"test": "run-p run_mocha && yarn test_cli",
"test:circleci": "yarn test:coverage && yarn test_cli",
"run_mocha": "(uname -s | grep -q Darwin && echo 'HACK! skipping mocha run due to https://github.com/0xProject/tools/issues/2000') || mocha --require source-map-support/register --require make-promises-safe lib/test/*_test.js --timeout 100000 --bail --exit",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷

Fix detection for `provider.send(payload,cb)` to use replaceAll inste…
@moodlezoup moodlezoup force-pushed the feat/abi-encoder-nested-structs branch from 64f10ba to 5a12743 Compare January 19, 2022 04:53
@moodlezoup moodlezoup merged commit 622877c into development Jan 19, 2022
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

Successfully merging this pull request may close these issues.

3 participants