Skip to content

Commit 0ad0b79

Browse files
committed
added create to with basevoid in new rust enum
1 parent 7fab069 commit 0ad0b79

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Substrate.NetApi/Model/Types/Base/BaseEnumRust.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ public void Create(TEnum t, IType iType)
115115
Bytes = bytes.ToArray();
116116
}
117117

118+
/// <summary>
119+
/// Create from enum only with BaseVoid
120+
/// </summary>
121+
/// <param name="t"></param>
122+
public void Create(TEnum t)
123+
{
124+
Create(t, new BaseVoid());
125+
}
126+
118127
/// <inheritdoc/>
119128
public TEnum Value { get; set; }
120129
/// <inheritdoc/>

Substrate.NetApi/Substrate.NetApi.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<PackageId>Substrate.NET.API</PackageId>
55
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
6-
<Version>0.9.24-rc4</Version>
6+
<Version>0.9.24-rc5</Version>
77
<Company>Substrate Gaming</Company>
88
<Authors>Substrate Gaming</Authors>
99
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

0 commit comments

Comments
 (0)