Open YaronWittenstein opened 2 years ago
In Simple Coin Iteration #2 we add this Template implemented: #449
Simple Coin Iteration #2
This time we need to add a new endpoint (SVM SDK #[endpoint]) that will receive as input:
endpoint
#[endpoint]
addr
Address
Account
Pending
value
Target Account
We're supposed to compute ahead of time the Address of the Account since we know what the future Self-Spawn Transaction would look like (see #247).
Self-Spawn Transaction
For creating the Pending Account use the svm_account_create (see issue #466)
Pending Account
svm_account_create
In
Simple Coin Iteration #2
we add this Template implemented: #449This time we need to add a new
endpoint
(SVM SDK#[endpoint]
) that will receive as input:addr
- TheAddress
of the newAccount
to be created. (in aPending
state).value
- The initial balance of thatAccount
(to be transferred from theTarget Account
executing the code).Notes
We're supposed to compute ahead of time the
Address
of theAccount
since we know what the futureSelf-Spawn Transaction
would look like (see #247).For creating the
Pending Account
use thesvm_account_create
(see issue #466)