Skip to content

Commit

Permalink
Update entrypoint forging
Browse files Browse the repository at this point in the history
  • Loading branch information
Groxan committed Nov 30, 2022
1 parent 3fd62e6 commit e6880c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Netezos/Forging/Local/ForgedReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ public string ReadEntrypoint()
case 2: return "do";
case 3: return "set_delegate";
case 4: return "remove_delegate";
case 5: return "deposit";
case 255: return ReadString();
default: throw new ArgumentException($"Invalid entrypoint prefix {epType}");
}
Expand Down
1 change: 1 addition & 0 deletions Netezos/Forging/Local/LocalForge.Forgers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public static byte[] ForgeEntrypoint(string value)
case "do": return new byte[] { 2 };
case "set_delegate": return new byte[] { 3 };
case "remove_delegate": return new byte[] { 4 };
case "deposit": return new byte[] { 5 };
default:
return new byte[] { 255 }.Concat(ForgeString(value, 1));
}
Expand Down
1 change: 1 addition & 0 deletions Netezos/Forging/Local/LocalForge.Unforgers.Operations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,7 @@ static string UnforgeEntrypoint(ForgedReader reader)
case 2: return "do";
case 3: return "set_delegate";
case 4: return "remove_delegate";
case 5: return "deposit";
case 255: return reader.ReadString(1);
default: throw new ArgumentException($"Unrecognized endpoint type {ep}");
}
Expand Down

0 comments on commit e6880c4

Please sign in to comment.