Skip to content

test: added initial draft coverage for Token Airdrop (HIP-904) #1472

test: added initial draft coverage for Token Airdrop (HIP-904)

test: added initial draft coverage for Token Airdrop (HIP-904) #1472

GitHub Actions / Unit Tests results failed Nov 14, 2024 in 0s

4 fail, 4 skipped, 18 pass in 36s

 1 files  ± 0   8 suites  +6   36s ⏱️ +15s
26 tests +16  18 ✅ + 8  4 💤 +4  4 ❌ +4 
32 runs  +22  24 ✅ +14  4 💤 +4  4 ❌ +4 

Results for commit 1556bbc. ± Comparison against earlier commit f3d297b.

Annotations

Check warning on line 0 in should be able to airdrop any token in its balance based on token address

See this annotation in the file changed.

@github-actions github-actions / Unit Tests results

HRC904Contract Test Suite should be able to airdrop any token in its balance based on token address (should be able to airdrop any token in its balance based on token address) failed

test-results.8130130f9f35b54ccf38227f1782387f.xml [took 1s]
Raw output
transaction execution reverted (action="sendTransaction", data=null, reason=null, invocation=null, revert=null, transaction={ "data": "", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "to": "0x8Ed4182FFfE3E12F8e47B055C3f191f60D84A2E3" }, receipt={ "_type": "TransactionReceipt", "blobGasPrice": null, "blobGasUsed": null, "blockHash": "0xbe2043b34c79309c825c09da0305a9ce08097bda0edf890456302b1b64b3952e", "blockNumber": 97, "contractAddress": "0x8Ed4182FFfE3E12F8e47B055C3f191f60D84A2E3", "cumulativeGasUsed": "1969363", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "gasPrice": "710000000000", "gasUsed": "1969363", "hash": "0x3686a2cc02365ca44d3c6607d5b49892a14f8591c2fda8e189ab2c79088a4eff", "index": 7, "logs": [  ], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "status": 0, "to": "0x8Ed4182FFfE3E12F8e47B055C3f191f60D84A2E3" }, code=CALL_EXCEPTION, version=6.13.2)
Error: transaction execution reverted (action="sendTransaction", data=null, reason=null, invocation=null, revert=null, transaction={ "data": "", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "to": "0x8Ed4182FFfE3E12F8e47B055C3f191f60D84A2E3" }, receipt={ "_type": "TransactionReceipt", "blobGasPrice": null, "blobGasUsed": null, "blockHash": "0xbe2043b34c79309c825c09da0305a9ce08097bda0edf890456302b1b64b3952e", "blockNumber": 97, "contractAddress": "0x8Ed4182FFfE3E12F8e47B055C3f191f60D84A2E3", "cumulativeGasUsed": "1969363", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "gasPrice": "710000000000", "gasUsed": "1969363", "hash": "0x3686a2cc02365ca44d3c6607d5b49892a14f8591c2fda8e189ab2c79088a4eff", "index": 7, "logs": [  ], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "status": 0, "to": "0x8Ed4182FFfE3E12F8e47B055C3f191f60D84A2E3" }, code=CALL_EXCEPTION, version=6.13.2)
    at makeError (node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
    at checkReceipt (node_modules/ethers/src.ts/providers/provider.ts:1585:19)
    at txListener (node_modules/ethers/src.ts/providers/provider.ts:1635:33)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check warning on line 0 in should be able to claim any token airdropped to it based on token address

See this annotation in the file changed.

@github-actions github-actions / Unit Tests results

HRC904Contract Test Suite should be able to claim any token airdropped to it based on token address (should be able to claim any token airdropped to it based on token address) failed

test-results.8130130f9f35b54ccf38227f1782387f.xml [took 1s]
Raw output
transaction execution reverted (action="sendTransaction", data=null, reason=null, invocation=null, revert=null, transaction={ "data": "", "from": "0x927E41Ff8307835A1C081e0d7fD250625F2D4D0E", "to": "0x000000000000000000000000000000000000041D" }, receipt={ "_type": "TransactionReceipt", "blobGasPrice": null, "blobGasUsed": null, "blockHash": "0x7ea7a6b01777fd6968d117cf49cdd0c44a8a23c4aa27bf1ad19667a63c0d3b70", "blockNumber": 99, "contractAddress": "0x000000000000000000000000000000000000041D", "cumulativeGasUsed": "984798", "from": "0x927E41Ff8307835A1C081e0d7fD250625F2D4D0E", "gasPrice": "710000000000", "gasUsed": "984798", "hash": "0xc4e738dbb9e3a2d0937cad008fd46ad97a86c41b87c78a70a54e0b7af5c10cfe", "index": 1, "logs": [  ], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "status": 0, "to": "0x000000000000000000000000000000000000041D" }, code=CALL_EXCEPTION, version=6.13.2)
Error: transaction execution reverted (action="sendTransaction", data=null, reason=null, invocation=null, revert=null, transaction={ "data": "", "from": "0x927E41Ff8307835A1C081e0d7fD250625F2D4D0E", "to": "0x000000000000000000000000000000000000041D" }, receipt={ "_type": "TransactionReceipt", "blobGasPrice": null, "blobGasUsed": null, "blockHash": "0x7ea7a6b01777fd6968d117cf49cdd0c44a8a23c4aa27bf1ad19667a63c0d3b70", "blockNumber": 99, "contractAddress": "0x000000000000000000000000000000000000041D", "cumulativeGasUsed": "984798", "from": "0x927E41Ff8307835A1C081e0d7fD250625F2D4D0E", "gasPrice": "710000000000", "gasUsed": "984798", "hash": "0xc4e738dbb9e3a2d0937cad008fd46ad97a86c41b87c78a70a54e0b7af5c10cfe", "index": 1, "logs": [  ], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "status": 0, "to": "0x000000000000000000000000000000000000041D" }, code=CALL_EXCEPTION, version=6.13.2)
    at makeError (node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
    at checkReceipt (node_modules/ethers/src.ts/providers/provider.ts:1585:19)
    at TransactionResponse.wait (node_modules/ethers/src.ts/providers/provider.ts:1602:24)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Context.<anonymous> (test/system-contracts/hedera-token-service/token-airdrop/tokenAirdropContract.js:126:21)

Check warning on line 0 in should be able to cancel a token it airdropped

See this annotation in the file changed.

@github-actions github-actions / Unit Tests results

HRC904Contract Test Suite should be able to cancel a token it airdropped (should be able to cancel a token it airdropped) failed

test-results.8130130f9f35b54ccf38227f1782387f.xml [took 1s]
Raw output
transaction execution reverted (action="sendTransaction", data=null, reason=null, invocation=null, revert=null, transaction={ "data": "", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "to": "0xb050361B94A28A043Cee5dECF41F25e270E460f5" }, receipt={ "_type": "TransactionReceipt", "blobGasPrice": null, "blobGasUsed": null, "blockHash": "0x439a7f9c6fdef3f5d448cee942250dfa9270c3266e48131ec2000ea8f185fb07", "blockNumber": 100, "contractAddress": "0xb050361B94A28A043Cee5dECF41F25e270E460f5", "cumulativeGasUsed": "485391", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "gasPrice": "710000000000", "gasUsed": "485391", "hash": "0x80c9128899e8bd3e2db0d5bbf64d7fc98fc576b5ccea1c2daabc2c90e4885d79", "index": 8, "logs": [  ], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "status": 0, "to": "0xb050361B94A28A043Cee5dECF41F25e270E460f5" }, code=CALL_EXCEPTION, version=6.13.2)
Error: transaction execution reverted (action="sendTransaction", data=null, reason=null, invocation=null, revert=null, transaction={ "data": "", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "to": "0xb050361B94A28A043Cee5dECF41F25e270E460f5" }, receipt={ "_type": "TransactionReceipt", "blobGasPrice": null, "blobGasUsed": null, "blockHash": "0x439a7f9c6fdef3f5d448cee942250dfa9270c3266e48131ec2000ea8f185fb07", "blockNumber": 100, "contractAddress": "0xb050361B94A28A043Cee5dECF41F25e270E460f5", "cumulativeGasUsed": "485391", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "gasPrice": "710000000000", "gasUsed": "485391", "hash": "0x80c9128899e8bd3e2db0d5bbf64d7fc98fc576b5ccea1c2daabc2c90e4885d79", "index": 8, "logs": [  ], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "status": 0, "to": "0xb050361B94A28A043Cee5dECF41F25e270E460f5" }, code=CALL_EXCEPTION, version=6.13.2)
    at makeError (node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
    at checkReceipt (node_modules/ethers/src.ts/providers/provider.ts:1585:19)
    at txListener (node_modules/ethers/src.ts/providers/provider.ts:1635:33)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check warning on line 0 in should be able to revoke any token in its balance

See this annotation in the file changed.

@github-actions github-actions / Unit Tests results

HRC904Contract Test Suite should be able to revoke any token in its balance (should be able to revoke any token in its balance) failed

test-results.8130130f9f35b54ccf38227f1782387f.xml [took 1s]
Raw output
transaction execution reverted (action="sendTransaction", data=null, reason=null, invocation=null, revert=null, transaction={ "data": "", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "to": "0xb050361B94A28A043Cee5dECF41F25e270E460f5" }, receipt={ "_type": "TransactionReceipt", "blobGasPrice": null, "blobGasUsed": null, "blockHash": "0x35bd8af48c7cef4ace183b239490102fe230654b83de66e34d51a3ebbe14074e", "blockNumber": 102, "contractAddress": "0xb050361B94A28A043Cee5dECF41F25e270E460f5", "cumulativeGasUsed": "485374", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "gasPrice": "710000000000", "gasUsed": "485374", "hash": "0x0e1e3e1cbdfa2351d74ea792ffd4f13ff538a7db42b393888d3ded0164c9f259", "index": 2, "logs": [  ], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "status": 0, "to": "0xb050361B94A28A043Cee5dECF41F25e270E460f5" }, code=CALL_EXCEPTION, version=6.13.2)
Error: transaction execution reverted (action="sendTransaction", data=null, reason=null, invocation=null, revert=null, transaction={ "data": "", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "to": "0xb050361B94A28A043Cee5dECF41F25e270E460f5" }, receipt={ "_type": "TransactionReceipt", "blobGasPrice": null, "blobGasUsed": null, "blockHash": "0x35bd8af48c7cef4ace183b239490102fe230654b83de66e34d51a3ebbe14074e", "blockNumber": 102, "contractAddress": "0xb050361B94A28A043Cee5dECF41F25e270E460f5", "cumulativeGasUsed": "485374", "from": "0x05FbA803Be258049A27B820088bab1cAD2058871", "gasPrice": "710000000000", "gasUsed": "485374", "hash": "0x0e1e3e1cbdfa2351d74ea792ffd4f13ff538a7db42b393888d3ded0164c9f259", "index": 2, "logs": [  ], "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "status": 0, "to": "0xb050361B94A28A043Cee5dECF41F25e270E460f5" }, code=CALL_EXCEPTION, version=6.13.2)
    at makeError (node_modules/ethers/src.ts/utils/errors.ts:694:21)
    at assert (node_modules/ethers/src.ts/utils/errors.ts:715:25)
    at checkReceipt (node_modules/ethers/src.ts/providers/provider.ts:1585:19)
    at ContractTransactionResponse.wait (node_modules/ethers/src.ts/providers/provider.ts:1602:24)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at ContractTransactionResponse.wait (node_modules/ethers/src.ts/contract/wrappers.ts:136:25)
    at Context.<anonymous> (test/system-contracts/hedera-token-service/token-airdrop/tokenAirdropContract.js:141:21)