// MutateCreateAccount for Destination sets the CreateAccountOp's Destination
// field
func (m Destination) MutateCreateAccount(o *xdr.CreateAccountOp) error {
	aid, err := stellarbase.AddressToAccountId(m.Address)
	o.Destination = aid
	return err
}
Example #2
0
// MutateCreateAccount for NativeAmount sets the CreateAccountOp's
// StartingBalance field
func (m NativeAmount) MutateCreateAccount(o *xdr.CreateAccountOp) error {
	o.StartingBalance = xdr.Int64(m.Amount)
	return nil
}