-
Notifications
You must be signed in to change notification settings - Fork 13
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
migrate from eggroll to rollmelette #48
Conversation
|
||
result, err := client.WaitFor(ctx, inputIndex) |
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.
Hey @gligneul
Do you think something like waitForInput function is a good helper function to replace the WaitFor
function above?
Similarly, to implement the stateRun function, seems this getNodeState function would be a good helper, but it's not exported.
f862c06
to
81c3c5a
Compare
One aspect that we could improve is the input codec situation. |
81c3c5a
to
8e78399
Compare
sendCmd.PersistentFlags().Uint32VarP(&sendArgs.accountIndex, | ||
"account-index", "a", 0, "Forge account index when sending the transaction") | ||
sendCmd.PersistentFlags().StringVarP(&sendArgs.fromAddress, | ||
"from-address", "f", "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", | ||
"Sender address when sending the transaction") |
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.
Note: instead of using account index, we now use address as argument directly
BountyIndex: number; | ||
Name: string; | ||
ImgLink: string; | ||
Exploit: string; |
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.
it was subtle to find this bug. Didn't realize that the case in interface fields needs to be the same as the JSON data fields, otherwise we only get undefined
using .Exploit
.
I will open another issue to format other interface fields to camelCase to comply with JSON recommendation
Nice @ZzzzHui ! Tomorrow I will execute a complete test on this branch using the frontend and I will let you know about issues, if they exist, ok? |
That would be great. Thank you Claudio !! |
I did not forget about the test, @ZzzzHui ! 😉 |
Please rebase this on top of |
f78221b
to
bda9591
Compare
Given that @ZzzzHui is OOO, and this is a blocker to bump the Sunodo SDK to 0.3.0, I will continue the work to deliver this ASAP. |
bda9591
to
e628a69
Compare
@claudioantonio Added the warning to the README. |
README.md
Outdated
@@ -92,6 +92,10 @@ make test | |||
|
|||
## CLI | |||
|
|||
> [!WARNING] |
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 didn't experience something not working with the CLI itself
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.
See my other comment about cast
limiting argument size. This may actually be a limitation on the OS, which limits argument sizes by default? This is non-critical, so @claudioantonio and I agreed to have this broken for the time being, and fix it on a later PR. I think the way is to mimic how EggRoll was creating and signing transactions using go-ethereum
.
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.
Yes. It's a system issue. Try increase stack space limit using ulimit -s
as mentioned here.
README.md
Outdated
@@ -151,6 +155,10 @@ go run ./cli test \ | |||
|
|||
## Populating DApp | |||
|
|||
> [!WARNING] |
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.
The populate script doesn't work because it uses -a
flag. I will replace with -f
flag and everything seems to 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.
It also doesn't work because it is now using cast
which limits the size of arguments to function calls. In our case, this limits the size of the input, so we can't send some bounties such as SQLite.
eeba1d6
to
acff1b7
Compare
acff1b7
to
c2c7a44
Compare
I've fixed some issues:
|
Hi Gui! I finished my tests and everything passed! Test create a bounty ✅ |
Great! Thanks for the extensive tests. Do you also approve the merge of this PR? @claudioantonio |
Thanks for the reviews, tests and help guys @guidanoli @claudioantonio |
This is my first time writing Go. So feel free to point out any of my silly mistakes, when it's ready to review 😂