diff --git a/extrinsic.go b/extrinsic.go index 9bf5e8c..30f6bd3 100644 --- a/extrinsic.go +++ b/extrinsic.go @@ -232,6 +232,13 @@ func (g *GenericExtrinsic) Encode(opt *scaleType.ScaleDecoderOption) (string, er data = data + scaleType.Encode("EraExtrinsic", g.Era) // era data = data + scaleType.Encode("Compact", g.Nonce) // nonce data = data + scaleType.Encode("Compact", g.Tip) // tip + for identifier, extension := range g.SignedExtensions { + for _, ext := range opt.Metadata.Extrinsic.SignedExtensions { + if ext.Identifier == identifier { + data = data + scaleType.Encode(ext.TypeString, extension) + } + } + } } data = data + g.CallCode