This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
Update the Simple Coin Single-Signature
Template to use Self-Spawn
#480
Labels
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 Formula for computing anAccount Address
#247).For creating the
Pending Account
use thesvm_account_create
(see issue Implement host function:svm_account_create
#466)The text was updated successfully, but these errors were encountered: