Skip to content

Cleanup account resource implementation #11

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

Merged
merged 1 commit into from
Nov 18, 2019
Merged

Conversation

thefallentree
Copy link

@thefallentree thefallentree commented Nov 15, 2019

Changed authentication key into an fixed array. Also deleted unnecessary DevAccountResource type, updated test to pass

@thefallentree
Copy link
Author

Right now the test suite doesn't really catch memory corruption issues, we are still just returning arrays that points to out-of-scope stack memory. Which is really bad.

@sunmilee
Copy link
Contributor

Let's merge this in and can figure out how to catch memory issues

delegated_key_rotation_capability: account_resource.delegated_key_rotation_capability,
delegated_withdrawal_capability: account_resource.delegated_withdrawal_capability,

let result = CDevAccountResource {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: return here

@thefallentree thefallentree merged commit 2df09f1 into master Nov 18, 2019
@thefallentree thefallentree deleted the fallentree-ar branch December 12, 2019 21:23
thefallentree pushed a commit that referenced this pull request Sep 22, 2020
fix GetAccountStateResp for new testnet release
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.

2 participants