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

Explicitly specify the trait in the dispatching #1131

Merged
merged 2 commits into from
Feb 13, 2022

Conversation

xgreenx
Copy link
Collaborator

@xgreenx xgreenx commented Feb 11, 2022

Seems the previous implementer forget to specify the trait that should be used during call of the method of that trait in the dispatching logic.

It can cause a compilation error if two trait have the same method name.

@paritytech-cicd-pr
Copy link

paritytech-cicd-pr commented Feb 11, 2022

🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑

These are the results when building the examples/* contracts from this branch with cargo-contract 0.17.0-38b3ac7 and comparing them to ink! master:

Δ Optimized Size Δ Used Gas Total Optimized Size Total Used Gas
accumulator 1.44 K
adder 2.94 K
contract-terminate 1.31 K 215_704
contract-transfer 8.55 K 15_704
delegator 7.63 K 51_343
dns 10.20 K 47_112
erc1155 28.32 K 94_224
erc20 9.80 K 47_112
erc721 13.70 K 125_632
flipper 1.76 K 15_704
incrementer 1.64 K 15_704
multisig 26.76 K 103_580
proxy 3.87 K 32_304
rand-extension 5.12 K 15_704
subber 2.96 K
trait-erc20 10.10 K 47_112
trait-flipper 1.53 K 15_704
trait-incrementer 1.62 K 31_408

Link to the run | Last update: Sat Feb 12 02:23:47 CET 2022

Copy link
Contributor

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Can you add a UI test for the failing case?

@xgreenx
Copy link
Collaborator Author

xgreenx commented Feb 12, 2022

Can you add a UI test for the failing case?

Done, without the change that test fails=)

Copy link
Contributor

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

None yet

3 participants