Skip to content

Commit 19f26c3

Browse files
authored
fix: support big.Int when decoding PlutusData (#104)
Signed-off-by: Aurora Gaffney <[email protected]>
1 parent 642c9dd commit 19f26c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

data/decode.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ func decodeRaw(v any) (PlutusData, error) {
104104
case cbor.ByteString:
105105
return NewByteString(x.Bytes()), nil
106106

107+
case big.Int:
108+
return NewInteger(&x), nil
109+
107110
case int64:
108111
return NewInteger(big.NewInt(x)), nil
109112

0 commit comments

Comments
 (0)