github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/state/runtime/fakevm/account.go (about)

     1  package fakevm
     2  
     3  import "github.com/ethereum/go-ethereum/common"
     4  
     5  // Account represents a fake EVM account.
     6  type Account struct {
     7  	address common.Address
     8  }
     9  
    10  // NewAccount is the Account constructor.
    11  func NewAccount(address common.Address) *Account {
    12  	return &Account{address: address}
    13  }
    14  
    15  // Address is the address getter.
    16  func (a *Account) Address() common.Address { return a.address }