Skip to content

Commit e66e809

Browse files
committed
fix(tests): drop hollow-account txSigner from ERC20 suite, use signer0
Signed-off-by: ValentinVPK <valentin.krumov@limechain.tech>
1 parent 1bbd87e commit e66e809

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

test/token-service/erc-20/ERC20Contract.js

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,15 @@ describe('ERC20Contract Test Suite', function () {
1111
let tokenAddress;
1212
let erc20Contract;
1313
let signers;
14-
let txSigner;
1514
const TOTAL_SUPPLY = 10000000000;
1615

1716
before(async function () {
18-
this.timeout(180000); // [diag] bound the hook so a hang flushes instead of eating the 45m job cap
19-
console.log('[diag] erc20c: getSigners');
2017
signers = await ethers.getSigners();
21-
console.log('[diag] erc20c: deploy erc20Contract');
2218
erc20Contract = await utils.deployERC20Contract();
23-
// Relay model: one plain-ECDSA txSigner signs every contract call and no
24-
// account is ever re-keyed. v0.77 rejects EthereumTransactions from KeyList
25-
// accounts, so the signers stay untouched and act only as subjects.
26-
console.log('[diag] erc20c: createTxSigner');
27-
txSigner = await utils.createTxSigner(signers[0]);
28-
erc20Contract = erc20Contract.connect(txSigner);
29-
// Token is created natively by its treasury (signer0, plain ECDSA) — no
30-
// contract-mediated create, so no account authorization is required.
31-
console.log('[diag] erc20c: createFungibleTokenViaSdk');
19+
// No account is re-keyed, so signer0 stays a plain-ECDSA sender and signs
20+
// every call. The token is created natively by its treasury (signer0), so
21+
// no contract-mediated create and no account authorization is required.
3222
tokenAddress = await hapi.createFungibleTokenViaSdk(0);
33-
console.log('[diag] erc20c: before DONE ' + tokenAddress);
3423
});
3524

3625
after(function () {

0 commit comments

Comments
 (0)