Skip to content

Commit

Permalink
Implicitly set converter for MichelineInt.Value
Browse files Browse the repository at this point in the history
  • Loading branch information
MS committed Jan 24, 2023
1 parent 346d70b commit 5445fa4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Netezos/Encoding/Micheline/Nodes/MichelineInt.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.IO;
using System.Numerics;
using System.Text.Json.Serialization;
using Netezos.Forging.Models;

namespace Netezos.Encoding
{
Expand All @@ -10,6 +11,7 @@ public class MichelineInt : IMicheline
public MichelineType Type => MichelineType.Int;

[JsonPropertyName("int")]
[JsonConverter(typeof(BigIntegerStringConverter))]
public BigInteger Value { get; set; }

public MichelineInt(BigInteger value) => Value = value;
Expand Down

0 comments on commit 5445fa4

Please sign in to comment.