Skip to content

Conversation

@akronim26
Copy link
Contributor

Fixes #520

  • Replaces getMaxProvingPeriod() and getChallengeWindow() by getPDPConfig()

@github-project-automation github-project-automation bot moved this to 📌 Triage in FS Dec 24, 2025
@BigLep BigLep moved this from 📌 Triage to 🔎 Awaiting review in FS Dec 24, 2025
@akronim26
Copy link
Contributor Author

I ran pnpm test and got following regarding the pieceStatus() test:

Failed to get PDP config: Error: execution reverted: "Warm Storage View: unknown function: getPDPConfig with args: undefined" (action="call", data="0x08c379a000000000000000000000000000000…
│     at makeError (file:///home/akronim26/Desktop/Skills/Blockchain/Opensource/synapse-sdk/node_modules/.pnpm/[email protected]/node_modules/ethers/src.ts/utils/errors.ts:698:21)
│     at getBuiltinCallException (file:///home/akronim26/Desktop/Skills/Blockchain/Opensource/synapse-sdk/node_modules/.pnpm/[email protected]/node_modules/ethers/src.ts/abi/abi-coder.ts:118:12)
│     at _AbiCoder.getBuiltinCallException (file:///home/akronim26/Desktop/Skills/Blockchain/Opensource/synapse-sdk/node_modules/.pnpm/[email protected]/node_modules/ethers/src.ts/abi/abi-coder…
│     at _Interface.makeError (file:///home/akronim26/Desktop/Skills/Blockchain/Opensource/synapse-sdk/node_modules/.pnpm/[email protected]/node_modules/ethers/src.ts/abi/interface.ts:925:32)
│     at staticCallResult (file:///home/akronim26/Desktop/Skills/Blockchain/Opensource/synapse-sdk/node_modules/.pnpm/[email protected]/node_modules/ethers/src.ts/contract/contract.ts:340:42)
│     at processTicksAndRejections (node:internal/process/task_queues:103:5)
│     at staticCall (file:///home/akronim26/Desktop/Skills/Blockchain/Opensource/synapse-sdk/node_modules/.pnpm/[email protected]/node_modules/ethers/src.ts/contract/contract.ts:303:24)
│     at Proxy.getPDPConfig (file:///home/akronim26/Desktop/Skills/Blockchain/Opensource/synapse-sdk/node_modules/.pnpm/[email protected]/node_modules/ethers/src.ts/contract/contract.ts:351:41)
│     at _WarmStorageService.getPDPConfig (file:///home/akronim26/Desktop/Skills/Blockchain/Opensource/synapse-sdk/packages/synapse-sdk/src/warm-storage/service.ts:1066:7)
│     at async Promise.all (index 1) {
│   code: 'CALL_EXCEPTION',
│   action: 'call',
│   data: '0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000465761726d2053746f7261676520566965773a2075…
│   reason: 'Warm Storage View: unknown function: getPDPConfig with args: undefined',
│   transaction: {
│     to: '0xA5D87b04086B1d591026cCE10255351B5AA4689B',
│     data: '0xea0f9354'
│   },
│   invocation: {
│     method: 'getPDPConfig',
│     signature: 'getPDPConfig()',
│     args: _Result(0) []
│   },
│   revert: {
│     signature: 'Error(string)',
│     name: 'Error',
│     args: [
│       'Warm Storage View: unknown function: getPDPConfig with args: undefined'
│     ]
│   },
│   shortMessage: 'execution reverted: "Warm Storage View: unknown function: getPDPConfig with args: undefined"'
│ }

The error is:

Warm Storage View: unknown function: getPDPConfig with args: undefined

But I am not able to understand what I am doing wrong here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 Awaiting review

Development

Successfully merging this pull request may close these issues.

Use getPDPConfig() instead of individual PDP config getters

1 participant