github.com/keybase/client/go@v0.0.0-20241007131713-f10651d043c8/stellar/assets.go (about)

     1  package stellar
     2  
     3  import (
     4  	"github.com/keybase/client/go/protocol/stellar1"
     5  	"github.com/keybase/stellarnet"
     6  )
     7  
     8  // AssetSliceToAssetBase converts []stellar1.Asset to []stellarnet.AssetBase.
     9  func AssetSliceToAssetBase(path []stellar1.Asset) []stellarnet.AssetBase {
    10  	a := make([]stellarnet.AssetBase, len(path))
    11  	for i, p := range path {
    12  		a[i] = p
    13  	}
    14  	return a
    15  }