-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add precheck for receivers account in sendRawTransactionCheck (#…
…3310) * chore: add precheck for receivers account in sendRawTransactionCheck Signed-off-by: Nadezhda Popova <[email protected]> * fixup! chore: add precheck for receivers account in sendRawTransactionCheck Signed-off-by: Nadezhda Popova <[email protected]> * fixup! fixup! chore: add precheck for receivers account in sendRawTransactionCheck Signed-off-by: Nadezhda Popova <[email protected]> * test: add test for receivers account precheck Signed-off-by: Nadezhda Popova <[email protected]> * fixup! test: add test for receivers account precheck Signed-off-by: Nadezhda Popova <[email protected]> * fixup! fixup! test: add test for receivers account precheck Signed-off-by: Nadezhda Popova <[email protected]> * fixup! fixup! fixup! test: add test for receivers account precheck Signed-off-by: Nadezhda Popova <[email protected]> * fixup! fixup! fixup! fixup! test: add test for receivers account precheck Signed-off-by: Nadezhda Popova <[email protected]> * fixup! fixup! fixup! fixup! fixup! test: add test for receivers account precheck Signed-off-by: Nadezhda Popova <[email protected]> * fixup! fixup! fixup! fixup! fixup! fixup! test: add test for receivers account precheck Signed-off-by: Nadezhda Popova <[email protected]> * fixup! fixup! fixup! fixup! fixup! fixup! fixup! test: add test for receivers account precheck Signed-off-by: Nadezhda Popova <[email protected]> --------- Signed-off-by: Nadezhda Popova <[email protected]>
- Loading branch information
1 parent
50316b5
commit 1ee437d
Showing
6 changed files
with
170 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,6 +99,7 @@ describe('@ethSendRawTransaction eth_sendRawTransaction spec', async function () | |
let clock: any; | ||
const accountAddress = '0x9eaee9E66efdb91bfDcF516b034e001cc535EB57'; | ||
const accountEndpoint = `accounts/${accountAddress}${NO_TRANSACTIONS}`; | ||
const receiverAccountEndpoint = `accounts/${ACCOUNT_ADDRESS_1}${NO_TRANSACTIONS}`; | ||
const gasPrice = '0xad78ebc5ac620000'; | ||
const transactionIdServicesFormat = '[email protected]'; | ||
const transactionId = '0.0.902-1684375868-230217103'; | ||
|
@@ -127,6 +128,13 @@ describe('@ethSendRawTransaction eth_sendRawTransaction spec', async function () | |
balance: Hbar.from(100_000_000_000, HbarUnit.Hbar).to(HbarUnit.Tinybar), | ||
}, | ||
}; | ||
const RECEIVER_ACCOUNT_RES = { | ||
account: ACCOUNT_ADDRESS_1, | ||
balance: { | ||
balance: Hbar.from(1, HbarUnit.Hbar).to(HbarUnit.Tinybar), | ||
}, | ||
receiver_sig_required: false, | ||
}; | ||
const useAsyncTxProcessing = ConfigService.get('USE_ASYNC_TX_PROCESSING') as boolean; | ||
|
||
beforeEach(() => { | ||
|
@@ -135,6 +143,7 @@ describe('@ethSendRawTransaction eth_sendRawTransaction spec', async function () | |
sdkClientStub = sinon.createStubInstance(SDKClient); | ||
sinon.stub(hapiServiceInstance, 'getSDKClient').returns(sdkClientStub); | ||
restMock.onGet(accountEndpoint).reply(200, ACCOUNT_RES); | ||
restMock.onGet(receiverAccountEndpoint).reply(200, RECEIVER_ACCOUNT_RES); | ||
restMock.onGet(networkExchangeRateEndpoint).reply(200, mockedExchangeRate); | ||
}); | ||
|
||
|
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