Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

claim_bounty -> ActorNotFound() #1

Open
polus-arcticus opened this issue Mar 26, 2023 · 1 comment
Open

claim_bounty -> ActorNotFound() #1

polus-arcticus opened this issue Mar 26, 2023 · 1 comment

Comments

@polus-arcticus
Copy link
Owner

polus-arcticus commented Mar 26, 2023

running npx hardhat test ./tests/dealRewarder.js

it("can claim a bounty", async () => {
const tx = await dealRewarderFacet.claim_bounty(0)
const receipt = await tx.wait()

function claim_bounty(uint64 deal_id) public {
console.log('hi');
AppStorage storage s = LibAppStorage.diamondStorage();
console.log('hi2');
MarketTypes.GetDealDataCommitmentReturn memory commitmentRet = MarketAPI.getDealDataCommitment(deal_id);

https://github.com/Zondax/filecoin-solidity/blob/d07293f079f502a5270edd002f15b470120b23f6/contracts/v0.8/MarketAPI.sol#L73

https://github.com/Zondax/filecoin-solidity/blob/d07293f079f502a5270edd002f15b470120b23f6/contracts/v0.8/utils/Actor.sol#L110-L118

https://github.com/Zondax/filecoin-solidity/blob/d07293f079f502a5270edd002f15b470120b23f6/contracts/v0.8/utils/Actor.sol#L133-L141

seems to be looking for the contract at https://github.com/Zondax/filecoin-solidity/blob/d07293f079f502a5270edd002f15b470120b23f6/contracts/v0.8/utils/Actor.sol#L31

  1) Deal Proposal
       can claim a bounty:
     Error: VM Exception while processing transaction: reverted with custom error 'ActorNotFound()'
    at DealRewarderFacet.validatePrecompileCall (@zondax/filecoin-solidity/contracts/v0.8/utils/Actor.sol:141)
    at DealRewarderFacet.callByID (@zondax/filecoin-solidity/contracts/v0.8/utils/Actor.sol:118)
    at DealRewarderFacet.getDealDataCommitment (@zondax/filecoin-solidity/contracts/v0.8/MarketAPI.sol:73)
    at DealRewarderFacet.claim_bounty (contracts/facets/DealRewarderFacet.sol:52)
    at <UnrecognizedContract>.<unknown> (0xcf7ed3acca5a467e9e704c703e8d87f634fb0fc9)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at HardhatNode._mineBlockWithPendingTxs (node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:1819:23)
    at HardhatNode.mineBlock (node_modules/hardhat/src/internal/hardhat-network/provider/node.ts:508:16)
    at EthModule._sendTransactionAndReturnHash (node_modules/hardhat/src/internal/hardhat-network/provider/modules/eth.ts:1522:18)
    at HardhatNetworkProvider.request (node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:123:18)
    at EthersProviderWrapper.send (node_modules/@nomiclabs/hardhat-ethers/src/internal/ethers-provider-wrapper.ts:13:20)

Currently Thinking its looking for a precompile contract at a hardcoded address that does not exist on the hardhat network, wondering if there is a way to mock it

@EmanHerawy
Copy link

I have the same issue while I forked the testnet and the mainnet . it's even when I tried to get any deal info
check my issue

Repository owner deleted a comment from jimgarcia Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants