optionPubkey static method

OptionalLayout optionPubkey({
  1. String? property,
  2. bool keepSize = false,
  3. Layout? discriminator,
})

optional SolAddress values.

Implementation

static OptionalLayout optionPubkey(
    {String? property, bool keepSize = false, Layout? discriminator}) {
  return OptionalLayout(publicKey(),
      property: property,
      keepLayoutSize: keepSize,
      discriminator: discriminator);
}