Skip to content

fix: replace non-functional Pod primitives with standard Solidity in examples#179

Open
namedfarouk wants to merge 1 commit intopodnetwork:mainfrom
namedfarouk:fix/devnet-safe-examples
Open

fix: replace non-functional Pod primitives with standard Solidity in examples#179
namedfarouk wants to merge 1 commit intopodnetwork:mainfrom
namedfarouk:fix/devnet-safe-examples

Conversation

@namedfarouk
Copy link

Summary

Fixes #129 - SDK examples use Pod-specific primitives (requireQuorum, requireTimeBefore, requireTimeAfter, FastTypes) that are currently non-functional on V1 devnet (chainId 1293), causing all transactions to revert.

Changes

Updated three example contracts to use standard Solidity equivalents:

  • tokens/contracts/Tokens.sol - replaced requireQuorum() with require()
  • notary/Notary.sol - replaced requireTimeBefore() and Time.Timestamp with require(block.timestamp ...) and uint256
  • solidity/src/Voting.sol - replaced requireTimeBefore(), requireTimeAfter(), FastTypes.AddressSet, FastTypes.OwnedCounter, and FastTypes.SharedCounter with standard require() checks and mapping types

Added examples/README.md documenting the affected primitives, their standard Solidity replacements, and which examples were updated.

Notes

  • These are temporary workarounds while the core team investigates the underlying requireQuorum()-based primitives on V1 devnet
  • All replacements follow patterns already used in the /docs contracts
  • Remaining examples (nfts, bsky, hashchallenge, voting) also use affected primitives and can be updated in a follow-up PR

…examples

Resolves podnetwork#129 — requireQuorum, requireTimeBefore, requireTimeAfter,
and FastTypes are currently broken on V1 devnet. Updated Tokens,
Notary, and Voting examples to use standard Solidity equivalents.
Added examples/README.md documenting the workarounds.
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

Successfully merging this pull request may close these issues.

**Bug Report: SDK Examples Use Non-Functional Primitives on V1 Devnet**

1 participant