rmv: transfer check with returnTx false
MODIFY
test/specs/pos/erc1155.spec.ts
test/specs/pos/erc1155.spec.ts
@@ -100,6 +100,7 @@ describe('ERC1155', () => {
expect(result['to'].toLowerCase()).equal(erc1155.child.toLowerCase());
})
+ if (process.env.NODE_ENV !== 'test_all') return;
it('transfer write', async () => {
const targetToken = 123;
@@ -157,8 +158,6 @@ describe('ERC1155', () => {
})
- if (process.env.NODE_ENV !== 'test_all') return;
-
it('approve', async () => {
const result = await erc1155Parent.approveAll({
returnTransaction: true

MODIFY
test/specs/pos/erc20.spec.ts
test/specs/pos/erc20.spec.ts
@@ -221,8 +221,7 @@ describe('ERC20', () => {
});
-
-
+ if (process.env.NODE_ENV !== 'test_all') return;
it('child transfer', async () => {
const oldBalance = await erc20Child.getBalance(to);
@@ -269,8 +268,6 @@ describe('ERC20', () => {
txReceipt = await result.getReceipt();
});
- if (process.env.NODE_ENV !== 'test_all') return;
-
it('approve', async () => {
const result = await erc20Parent.approve('10');

MODIFY
test/specs/pos/erc721.spec.ts
test/specs/pos/erc721.spec.ts
@@ -124,6 +124,8 @@ describe('ERC721', () => {
}
})
+ if (process.env.NODE_ENV !== 'test_all') return;
+
it('transfer write', async () => {
const allTokensFrom = await erc721Child.getAllTokens(from);
// console.log('allTokensFrom', allTokensFrom);
@@ -173,8 +175,6 @@ describe('ERC721', () => {
})
- if (process.env.NODE_ENV !== 'test_all') return;
-
it('approve', async () => {
const allTokens = await erc721Parent.getAllTokens(from);
if (allTokens && allTokens[0]) {

rmv: transfer check with returnTx false