diff --git a/SwiftyIroha/objC++/modelQueryBuilder/IRModelQueryBuilder.mm b/SwiftyIroha/objC++/modelQueryBuilder/IRModelQueryBuilder.mm index f4f64f5fe..cde0cf9ba 100644 --- a/SwiftyIroha/objC++/modelQueryBuilder/IRModelQueryBuilder.mm +++ b/SwiftyIroha/objC++/modelQueryBuilder/IRModelQueryBuilder.mm @@ -118,7 +118,7 @@ -(ModelQueryBuilderObjC*)getRoles { -(ModelQueryBuilderObjC*)getAssetInfoByAssetId:(NSString*)assetId { string assetIdCpp = [self getStringCppFromStringObjC:assetId]; - queryBuilderImpl->queryBuilderCpp = queryBuilderImpl->queryBuilderCpp.getRoles(); + queryBuilderImpl->queryBuilderCpp = queryBuilderImpl->queryBuilderCpp.getAssetInfo(assetIdCpp); return self; } diff --git a/SwiftyIroha/swift/query/QueryBuilder/IrohaQueryBuilder.swift b/SwiftyIroha/swift/query/QueryBuilder/IrohaQueryBuilder.swift index 1b0afc94e..e744f206e 100644 --- a/SwiftyIroha/swift/query/QueryBuilder/IrohaQueryBuilder.swift +++ b/SwiftyIroha/swift/query/QueryBuilder/IrohaQueryBuilder.swift @@ -71,8 +71,8 @@ public class IrohaQueryBuilder { return self } - public func getAssetInfo(byAssetsId assetsId: String) -> IrohaQueryBuilder { - modelQueryBuilder = modelQueryBuilder.getAssetInfo(byAssetId: assetsId) + public func getAssetInfo(byAssetId assetId: String) -> IrohaQueryBuilder { + modelQueryBuilder = modelQueryBuilder.getAssetInfo(byAssetId: assetId) return self } diff --git a/SwiftyIrohaTests/swift/query/QueryBuilder/IrohaQueryBuilderTests.swift b/SwiftyIrohaTests/swift/query/QueryBuilder/IrohaQueryBuilderTests.swift index aa793259b..86fcd296e 100644 --- a/SwiftyIrohaTests/swift/query/QueryBuilder/IrohaQueryBuilderTests.swift +++ b/SwiftyIrohaTests/swift/query/QueryBuilder/IrohaQueryBuilderTests.swift @@ -34,7 +34,7 @@ class IrohaQueryBuilderTests: XCTestCase { .creatorAccountId(creatorAcountId) .createdTime(Date()) .queryCounter(1) - .getAssetInfo(byAssetsId: "dollar#ru") + .getAssetInfo(byAssetId: "dollar#ru") .build() print(unsignedQuery) XCTAssertEqual(true, true, "Score computed from guess is wrong") @@ -91,7 +91,7 @@ class IrohaQueryBuilderTests: XCTestCase { func testGetAssetInfo() { let query = queryBuilder - .getAssetInfo(byAssetsId: "AssetsID") + .getAssetInfo(byAssetId: "AssetsID") .build() }