-
Notifications
You must be signed in to change notification settings - Fork 37
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
Tool 373 mark as deprecated all legacy functions #567
Merged
danielailie
merged 4 commits into
feat/next
from
TOOL-373-mark-as-deprecated-all-legacy-functions
Jan 29, 2025
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5fc14af
Mark all legacy method as deprecated and update code to use the new a…
danielailie caa7bc3
Update code to use new methods and not the deprecated one
danielailie 3e3117c
Code review follow up
danielailie 64d3b40
Add new line and update comments
danielailie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ import { ProxyNetworkProvider } from "./proxyNetworkProvider"; | |
|
||
describe("ProxyNetworkProvider Tests", function () { | ||
const proxy = new ProxyNetworkProvider("https://devnet-gateway.multiversx.com"); | ||
|
||
const transactionComputer = new TransactionComputer(); | ||
it("should fetch network configuration", async () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add empty line here |
||
const result = await proxy.getNetworkConfig(); | ||
assert.equal(result.chainID, "D"); | ||
|
@@ -282,7 +282,7 @@ describe("ProxyNetworkProvider Tests", function () { | |
|
||
it("should simulate transaction", async () => { | ||
const bob = await loadTestWallet("bob"); | ||
const transactionComputer = new TransactionComputer(); | ||
|
||
let transaction = new Transaction({ | ||
sender: bob.address, | ||
receiver: bob.address, | ||
|
@@ -334,7 +334,6 @@ describe("ProxyNetworkProvider Tests", function () { | |
|
||
it("should estimate transaction cost", async function () { | ||
const bob = await loadTestWallet("bob"); | ||
const transactionComputer = new TransactionComputer(); | ||
const transaction = new Transaction({ | ||
sender: bob.address, | ||
receiver: bob.address, | ||
|
@@ -351,7 +350,6 @@ describe("ProxyNetworkProvider Tests", function () { | |
it("should send and await for completed transaction", async function () { | ||
this.timeout(50000); | ||
const bob = await loadTestWallet("bob"); | ||
const transactionComputer = new TransactionComputer(); | ||
let transaction = new Transaction({ | ||
sender: bob.address, | ||
receiver: bob.address, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ import { TransferTransactionsFactory } from "./transfers/transferTransactionsFac | |
describe("test transaction", function () { | ||
let alice: TestWallet, bob: TestWallet; | ||
const transactionComputer = new TransactionComputer(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing empty line below (here, and in a few other files that have been changed). |
||
|
||
before(async function () { | ||
({ alice, bob } = await loadTestWallets()); | ||
}); | ||
|
@@ -56,8 +57,7 @@ describe("test transaction", function () { | |
await bob.sync(provider); | ||
let initialBalanceOfBob = new BigNumber((await bob.getBalance(provider)).toString()); | ||
|
||
transactionOne.nonce = alice.account.nonce; | ||
alice.account.incrementNonce(); | ||
transactionOne.nonce = alice.account.getNonceThenIncrement(); | ||
transactionTwo.nonce = alice.account.nonce; | ||
|
||
await signTransaction({ transaction: transactionOne, wallet: alice }); | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
the controller can be used for transactions, as well.