go-nitro icon indicating copy to clipboard operation
go-nitro copied to clipboard

API inconsistency between `CreateVirtual` and `Pay`

Open geoknee opened this issue 2 years ago • 0 comments

  • CreateVirtual accepts a full outcome.Exit type (a rich type that supports multiple assets, metadata and so on)
  • Pay only accepts a single uint64.
  • Right now, go-nitro only supports the native token.

Suggested fix: use a *big.Int in all API methods until such time that full outcome.Exits are supported in go-nitro.

geoknee avatar Jun 21 '23 14:06 geoknee