-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Rebased with latest condor-rc branch, refactored HowTo #390
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve conlicts
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.WRAPPER_OBJECT) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = DelegatorKindPurse.class, name = "Purse"), | ||
@JsonSubTypes.Type(value = DelegatorKindPublicKey.class, name = "PublicKey")}) | ||
public interface DelegatorKind {} | ||
public class DelegatorKind extends SeigniorageAllocation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you adding these fields to DelegatorKind it does not implement these in the Rust code. There are 2 different DelegatorKind enums in the rust codebase. The original needs to stay as it and a new delegator kind placeholder creating for the top level one.
/// Info about a seigniorage allocation for a delegator
DelegatorKind {
/// Delegator kind
delegator_kind: DelegatorKind,
/// Validator's public key
validator_public_key: PublicKey,
/// Allocated amount
amount: U512,
},
Please ensure all unit tests are passing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit tests are failing. Bring upto date with condor-rc and fix tests in error
@Test | ||
void validateGetStateEntityAccountCondor() throws IOException { | ||
|
||
final String inputJson = getPrettyJson(loadJsonFromFile("entity/getstateentity-account-condor-test.json")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't find this test resource "entity/getstateentity-account-condor-test.json"
No description provided.