Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Address(ImmutableArray<byte>) constructor #443

Merged
merged 1 commit into from
Aug 16, 2019

Conversation

kanghyojun
Copy link
Contributor

@kanghyojun kanghyojun commented Aug 16, 2019

@CLAassistant
Copy link

CLAassistant commented Aug 16, 2019

CLA assistant check
All committers have signed the CLA.

CHANGES.md Outdated
@@ -29,6 +29,8 @@ To be released.
- Removed `IRandom.NextDouble()` method, because [floating-point arithmetics,
which is underspecified, likely introduce
indeterminism][floating-point determinism]. [[#410], [#419]]
- `Address(byte[])` became to throw `ArgumentNullException`
instead of `NullReferenceException`. [[#442], [#443]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, #442 doesn't seem to address it.

Suggested change
instead of `NullReferenceException`. [[#442], [#443]]
instead of `NullReferenceException`. [[#443]]

/// <see cref="Address"/> can be gotten using <see cref="ToByteArray()"
/// /> method.</remarks>
/// <seealso cref="ByteArray"/>
public Address(ImmutableArray<byte> address) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public Address(ImmutableArray<byte> address) {
public Address(ImmutableArray<byte> address)
{

Libplanet/Address.cs Outdated Show resolved Hide resolved
@kanghyojun kanghyojun marked this pull request as ready for review August 16, 2019 05:11
@codecov
Copy link

codecov bot commented Aug 16, 2019

Codecov Report

Merging #443 into master will decrease coverage by 4.43%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #443      +/-   ##
==========================================
- Coverage   87.99%   83.56%   -4.44%     
==========================================
  Files         198      174      -24     
  Lines       14489    13820     -669     
==========================================
- Hits        12750    11549    -1201     
- Misses       1424     1985     +561     
+ Partials      315      286      -29
Impacted Files Coverage Δ
Libplanet/Address.cs 93.33% <100%> (ø) ⬆️
Libplanet.Tests/AddressTest.cs 95.87% <100%> (+0.24%) ⬆️
Libplanet.Stun/Stun/Attributes/ErrorCode.cs 0% <0%> (-100%) ⬇️
Libplanet.Stun/Stun/Attributes/Lifetime.cs 0% <0%> (-100%) ⬇️
Libplanet.Stun/Stun/Attributes/Nonce.cs 0% <0%> (-100%) ⬇️
...anet.Stun/Stun/Messages/CreatePermissionRequest.cs 0% <0%> (-100%) ⬇️
Libplanet.Stun/Stun/Messages/BindingRequest.cs 0% <0%> (-100%) ⬇️
Libplanet.Stun/Stun/Attributes/Realm.cs 0% <0%> (-100%) ⬇️
Libplanet.Stun/Stun/Attributes/Fingerprint.cs 0% <0%> (-100%) ⬇️
...planet.Stun/Stun/Messages/ConnectionBindRequest.cs 0% <0%> (-100%) ⬇️
... and 45 more

@longfin longfin merged commit b1cb141 into planetarium:master Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Address(ImmutableArray<byte>) constructor
6 participants