svm
svm copied to clipboard
Update the `Simple Coin Single-Signature` Template to use `Self-Spawn`
In Simple Coin Iteration #2
we add this Template implemented: #449
This 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)