Skip to content

Commit

Permalink
Merge pull request #321 from multiversx/reference-network-providers-2.0
Browse files Browse the repository at this point in the history
Referenced the new network providers package
  • Loading branch information
popenta authored Aug 24, 2023
2 parents da562ad + 1c11ce9 commit 9d98024
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 43 deletions.
46 changes: 9 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiversx/sdk-core",
"version": "12.7.0",
"version": "12.7.1",
"description": "MultiversX SDK for JavaScript and TypeScript",
"main": "out/index.js",
"types": "out/index.d.js",
Expand Down Expand Up @@ -35,8 +35,7 @@
"protobufjs": "7.2.4"
},
"devDependencies": {
"@multiversx/sdk-network-providers": "1.2.1",
"@multiversx/sdk-network-providers-next": "npm:@multiversx/sdk-network-providers@1.6.0-beta.0",
"@multiversx/sdk-network-providers": "2.0.0",
"@multiversx/sdk-wallet": "3.0.0",
"@multiversx/sdk-wallet-next": "npm:@multiversx/sdk-wallet@4.0.0",
"@types/assert": "1.4.6",
Expand Down
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,6 @@ export class ErrGasLimitShouldBe0ForInnerTransaction extends Err {

export class ErrIsCompletedFieldIsMissingOnTransaction extends Err {
public constructor() {
super("The transaction watcher requires the `isCompleted` property to be defined on the transaction object. Perhaps you've used the sdk-network-provider's `getTransaction()` and in that case you should also pass `withProcessStatus=true`.")
super("The transaction watcher requires the `isCompleted` property to be defined on the transaction object. Perhaps you've used the sdk-network-provider's `ProxyNetworkProvider.getTransaction()` and in that case you should also pass `withProcessStatus=true`.")
}
}
3 changes: 2 additions & 1 deletion src/testutils/mockProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export class MockProvider {
}

mockPutTransaction(hash: TransactionHash, item: ITransactionOnNetwork) {
item.isCompleted = false;
this.transactions.set(hash.toString(), item);
}

Expand Down Expand Up @@ -118,7 +119,7 @@ export class MockProvider {
sender: transaction.getSender(),
receiver: transaction.getReceiver(),
data: transaction.getData().valueOf(),
status: new TransactionStatus("pending"),
status: new TransactionStatus("pending")
})
);

Expand Down
2 changes: 1 addition & 1 deletion src/transaction.local.net.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { TokenTransfer } from "./tokenTransfer";
import { Transaction } from "./transaction";
import { TransactionPayload } from "./transactionPayload";
import { TransactionWatcher } from "./transactionWatcher";
import { ProxyNetworkProvider } from "@multiversx/sdk-network-providers-next";
import { ProxyNetworkProvider } from "@multiversx/sdk-network-providers";

describe("test transaction", function () {
let alice: TestWallet, bob: TestWallet;
Expand Down

0 comments on commit 9d98024

Please sign in to comment.