svm icon indicating copy to clipboard operation
svm copied to clipboard

Update the `Simple Coin Single-Signature` Template to use `Self-Spawn`

Open YaronWittenstein opened this issue 3 years ago • 0 comments

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 - The Address of the new Account to be created. (in a Pending state).
  • value - The initial balance of that Account (to be transferred from the Target Account executing the code).

Notes

  • 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).

  • For creating the Pending Account use the svm_account_create (see issue #466)

YaronWittenstein avatar Dec 23 '21 11:12 YaronWittenstein