Skip to content

Commit

Permalink
Add pubkey back to wallet template
Browse files Browse the repository at this point in the history
We may need this later, to pass into the VM template
  • Loading branch information
lrettig committed Oct 8, 2024
1 parent e134441 commit 2e94bda
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vm/templates/wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import (

// New returns Wallet instance with SpawnArguments.
func New(args *SpawnArguments) *Wallet {
return &Wallet{}
return &Wallet{PublicKey: args.PublicKey}
}

//go:generate scalegen

// Wallet is a single-key wallet.
type Wallet struct{}
type Wallet struct {
PublicKey core.PublicKey
}

// MaxSpend returns amount specified in the SpendArguments for Spend method.
func (s *Wallet) MaxSpend(args any) (uint64, error) {
Expand Down

0 comments on commit 2e94bda

Please sign in to comment.