Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Smart contracts file needs to be updated #43

Closed
Tolga-GA opened this issue Jun 3, 2019 · 6 comments
Closed

Smart contracts file needs to be updated #43

Tolga-GA opened this issue Jun 3, 2019 · 6 comments

Comments

@Tolga-GA
Copy link

Tolga-GA commented Jun 3, 2019

It seems that the code is changed because I can't use some of the functionalities with the latest update. Please update the file.

@simolus3
Copy link
Owner

simolus3 commented Jun 3, 2019

Do you mean this file as it is on master? It should work with the latest version on pub (1.0.0-rc2).

@Tolga-GA
Copy link
Author

Tolga-GA commented Jun 4, 2019

@simolus3
Yes, I meant that file, but it doesn't work as expected... There has been some changes in the library. See the screenshots below:

Screen Shot 2019-06-04 at 10 10 40 AM
Screen Shot 2019-06-04 at 10 11 03 AM
Screen Shot 2019-06-04 at 10 11 23 AM

@simolus3
Copy link
Owner

simolus3 commented Jun 4, 2019

Can you check your pubspec.lock to verify that you have the latest version of web3dart? It should be a release candidate of version 1.0.0, which includes that constructor

@Tolga-GA
Copy link
Author

Tolga-GA commented Jun 4, 2019

Can you check your pubspec.lock to verify that you have the latest version of web3dart? It should be a release candidate of version 1.0.0, which includes that constructor

You are right, I had to change the version from ^0.4.5 to ^1.0.0-rc.2! Now, it seems that I have to change my code again to make everything work as before. :) I will keep you updated soon, thanks!

Also, please update this page: https://pub.dev/packages/web3dart#-installing-tab-

@simolus3
Copy link
Owner

simolus3 commented Jun 4, 2019

Ah yeah sorry, that version has some breaking changes, you can see some recommendations for the migration in the changelog. I'll update the installing tab later today.

@simolus3
Copy link
Owner

simolus3 commented Jun 4, 2019

Closing as the original issue is resolved and the installing tab now points to the latest version. If you run into any problems while updating your code, don't hesitate to open another issue :)

@simolus3 simolus3 closed this as completed Jun 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants