Rename 'share' to 'shares' in vault_info RPC

This commit is contained in:
Bronek Kozicki
2025-04-03 11:45:47 +01:00
parent 6f4e7e8e44
commit af8ea3fb40
3 changed files with 6 additions and 6 deletions

View File

@@ -561,7 +561,7 @@ JSS(server_status); // out: NetworkOPs
JSS(server_version); // out: NetworkOPs JSS(server_version); // out: NetworkOPs
JSS(settle_delay); // out: AccountChannels JSS(settle_delay); // out: AccountChannels
JSS(severity); // in: LogLevel JSS(severity); // in: LogLevel
JSS(share); // out: VaultInfo JSS(shares); // out: VaultInfo
JSS(signature); // out: NetworkOPs, ChannelAuthorize JSS(signature); // out: NetworkOPs, ChannelAuthorize
JSS(signature_verified); // out: ChannelVerify JSS(signature_verified); // out: ChannelVerify
JSS(signing_key); // out: NetworkOPs JSS(signing_key); // out: NetworkOPs

View File

@@ -807,7 +807,7 @@ class Vault_test : public beast::unit_test::suite
BEAST_EXPECT( BEAST_EXPECT(
jvVault[jss::result][jss::vault][sfAssetsTotal] == "100"); jvVault[jss::result][jss::vault][sfAssetsTotal] == "100");
BEAST_EXPECT( BEAST_EXPECT(
jvVault[jss::result][jss::vault][jss::share] jvVault[jss::result][jss::vault][jss::shares]
[sfOutstandingAmount] == "100"); [sfOutstandingAmount] == "100");
// Vault pseudo-account // Vault pseudo-account
@@ -846,7 +846,7 @@ class Vault_test : public beast::unit_test::suite
BEAST_EXPECT( BEAST_EXPECT(
jvVault[jss::result][jss::vault][sfAssetsTotal] == "50"); jvVault[jss::result][jss::vault][sfAssetsTotal] == "50");
BEAST_EXPECT( BEAST_EXPECT(
jvVault[jss::result][jss::vault][jss::share] jvVault[jss::result][jss::vault][jss::shares]
[sfOutstandingAmount] == "50"); [sfOutstandingAmount] == "50");
} }
@@ -1556,7 +1556,7 @@ class Vault_test : public beast::unit_test::suite
BEAST_EXPECT(jv[jss::result].isMember(jss::vault)); BEAST_EXPECT(jv[jss::result].isMember(jss::vault));
check( check(
jv[jss::result][jss::vault], jv[jss::result][jss::vault],
jv[jss::result][jss::vault][jss::share]); jv[jss::result][jss::vault][jss::shares]);
} }
{ {
@@ -1571,7 +1571,7 @@ class Vault_test : public beast::unit_test::suite
BEAST_EXPECT(jv[jss::result].isMember(jss::vault)); BEAST_EXPECT(jv[jss::result].isMember(jss::vault));
check( check(
jv[jss::result][jss::vault], jv[jss::result][jss::vault],
jv[jss::result][jss::vault][jss::share]); jv[jss::result][jss::vault][jss::shares]);
} }
{ {

View File

@@ -59,7 +59,7 @@ doVaultInfo(RPC::JsonContext& context)
Json::Value& vault = jvResult[jss::vault]; Json::Value& vault = jvResult[jss::vault];
vault = sleVault->getJson(JsonOptions::none); vault = sleVault->getJson(JsonOptions::none);
auto& share = vault[jss::share]; auto& share = vault[jss::shares];
share = sleIssuance->getJson(JsonOptions::none); share = sleIssuance->getJson(JsonOptions::none);
jvResult[jss::vault] = vault; jvResult[jss::vault] = vault;