You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When unmarshalling a transaction from []byte it creates a pointer to the instruction's BaseVariant.Impl but when creating a token.Instruction using a builder like token.NewMintToCheckedInstructionBuilder() the BaseVariant.Impl is a value.
When unmarshalling a transaction from
[]byte
it creates a pointer to the instruction'sBaseVariant.Impl
but when creating atoken.Instruction
using a builder liketoken.NewMintToCheckedInstructionBuilder()
theBaseVariant.Impl
is a value.For example,
token.NewMintToCheckedInstructionBuilder()
, the.Build()
sets theBaseVariant.Impl
to the receiver value ofinst MintToChecked
solana-go/programs/token/MintToChecked.go
Line 135 in a5e17d6
When using
UnmarshalBin
of a[]byte
, it sets theBaseVariant.Impl
to a pointer, https://github.com/gagliardetto/binary/blob/79f49c5de0e11369897085d761a7e27cbd8eab15/variant.go#L320.To fix this, I propose changing the instructions'
.Build()
to take a pointer receiverThe text was updated successfully, but these errors were encountered: