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

one shouldn't not be able to invoke a increase or decrease of the balance #21

Open
bassjobsen opened this issue Aug 5, 2018 · 2 comments
Assignees
Labels

Comments

@bassjobsen
Copy link

Version

1.4

Steps to reproduce

https://github.com/bassjobsen/howto-asch-docs/blob/master/use-assets.md#something-wrong

What is expected?

A contract should always do a transfer (from the balance of the sender to the balance of the receiver) to we can check if the sender got enough assets to do the transfer.

What is actually happening?

see:
AschPlatform/asch#242 and AschPlatform/asch#229

@chengenguan
Copy link
Member

Hi bassjobsen,
Thanks for your suggestion. We will use transfer function to replace increase/decrease in next version.
Currently there are rewards in forging blocks, that's why we use increase. Thank you.

@sqfasd
Copy link
Member

sqfasd commented Aug 6, 2018

In next version, we will introduce a virtual account, and the new forged coins should come from the virtual account, and only the kernel program can invoke transfer from the virtual account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants