Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Funding an Account #487

Open
YaronWittenstein opened this issue Dec 26, 2021 · 0 comments
Open

Funding an Account #487

YaronWittenstein opened this issue Dec 26, 2021 · 0 comments
Assignees
Labels
AA Related to the Accounts Abstraction simple-coin-iteration-1 svm svm-core SVM core change

Comments

@YaronWittenstein
Copy link
Contributor

YaronWittenstein commented Dec 26, 2021

One of the fields each Transaction should have is the amount field. (it's part of the Envelope).
It could have been part of the Message, but I think that's the right decision to keep it in the Envelope.
(the same holds for the Transaction Nonce field).

The amount records the number of coins to transfer from the Principal account to the Other Account.
The interpretation of the Other Account depends on the Transaction type.

For Spawn Transaction - the Other Account will be the spawned account.
For Call Transaction - the Other Account will be the target account specified in the Transaction Message.

Notes

  • For Deploy Transaction, this field seems to be irrelevant. (probably better to keep it as zero or ignore that value).
  • For Self-Spawn Transaction this field could also be probably ignored (since the Principal is the spawned Account).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
AA Related to the Accounts Abstraction simple-coin-iteration-1 svm svm-core SVM core change
Projects
None yet
Development

No branches or pull requests

2 participants