Remove the timestamp from subproviders CHANGELOG.json (should be automatically added) and run 'yarn prettier' to format changes.
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
"note": "Fix bug in Private Key subprovider causing checksummed tx.origin addresses to be rejected.",
|
||||
"pr": 1962
|
||||
}
|
||||
],
|
||||
"timestamp": 1563240294
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "4.1.1",
|
||||
|
||||
@@ -34,7 +34,10 @@ describe('PrivateKeyWalletSubprovider', () => {
|
||||
expect(txHex).to.be.equal(fixtureData.TX_DATA_SIGNED_RESULT);
|
||||
});
|
||||
it('signs a transaction where the tx.origin is checksummed.', async () => {
|
||||
const TX_DATA_CHECKSUMMED_ORIGIN = { ...fixtureData.TX_DATA, from: fixtureData.TEST_RPC_ACCOUNT_0_CHECKSUMMED };
|
||||
const TX_DATA_CHECKSUMMED_ORIGIN = {
|
||||
...fixtureData.TX_DATA,
|
||||
from: fixtureData.TEST_RPC_ACCOUNT_0_CHECKSUMMED,
|
||||
};
|
||||
const txHex = await subprovider.signTransactionAsync(TX_DATA_CHECKSUMMED_ORIGIN);
|
||||
expect(txHex).to.be.equal(fixtureData.TX_DATA_SIGNED_RESULT);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user