Skip to content

Commit d1ac940

Browse files
nhussein11eshaben
andauthored
Add known issues section to FAQs for smart contracts (#768)
* Add known issues section to FAQs for smart contracts * fix: formatting * fix: formatting * Update develop/smart-contracts/faqs.md Co-authored-by: Erin Shaben <[email protected]> * fix: formatting * Apply suggestions from code review Co-authored-by: Erin Shaben <[email protected]> * llms --------- Co-authored-by: Erin Shaben <[email protected]>
1 parent c5b31b5 commit d1ac940

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

develop/smart-contracts/faqs.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,30 @@ The latest MetaMask update affects the extension’s ability to deploy large con
153153
### I found a bug, where can I log it?
154154

155155
Please log any bugs in the [`contracts-issues`](https://github.com/paritytech/contract-issues/issues){target=\_blank} repository so developers are aware of them and can address them.
156+
157+
158+
## Known Issues
159+
160+
### Runtime Behavior
161+
162+
- **`creationCode` returns hash instead of bytecode**: The Solidity keyword returns a `keccak256` hash rather than the actual creation bytecode.
163+
- [Issue #45](https://github.com/paritytech/contract-issues/issues/45){target=\_blank}
164+
- **Non-deterministic gas usage**: Gas consumption varies slightly for identical transactions.
165+
- [Issue #49](https://github.com/paritytech/contract-issues/issues/49){target=\_blank}
166+
- **Precompiles not recognized**: Precompile addresses return `Contract not found` error.
167+
- [Issue #111](https://github.com/paritytech/contract-issues/issues/111){target=\_blank}
168+
169+
### Development Tools
170+
171+
- **`hardhat-polkadot` plugin compilation issues**: Plugin interferes with standard `npx hardhat compile` command.
172+
- [Issue #44](https://github.com/paritytech/contract-issues/issues/44){target=\_blank}
173+
174+
### Contract Patterns
175+
176+
- **Minimal proxy (EIP-1167) deployment fails**: Standard proxy contracts cannot be deployed on PolkaVM.
177+
- [Issue #86](https://github.com/paritytech/contract-issues/issues/86){target=\_blank}
178+
179+
### Compilation
180+
181+
- **`SDIV` opcode crash**: Compiler crashes with `Unsupported SDIV` assertion failure.
182+
- [Issue #342](https://github.com/paritytech/revive/issues/342){target=\_blank}

llms.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8369,6 +8369,33 @@ The latest MetaMask update affects the extension’s ability to deploy large con
83698369
### I found a bug, where can I log it?
83708370

83718371
Please log any bugs in the [`contracts-issues`](https://github.com/paritytech/contract-issues/issues){target=\_blank} repository so developers are aware of them and can address them.
8372+
8373+
8374+
## Known Issues
8375+
8376+
### Runtime Behavior
8377+
8378+
- **`creationCode` returns hash instead of bytecode**: The Solidity keyword returns a `keccak256` hash rather than the actual creation bytecode.
8379+
- [Issue #45](https://github.com/paritytech/contract-issues/issues/45){target=\_blank}
8380+
- **Non-deterministic gas usage**: Gas consumption varies slightly for identical transactions.
8381+
- [Issue #49](https://github.com/paritytech/contract-issues/issues/49){target=\_blank}
8382+
- **Precompiles not recognized**: Precompile addresses return `Contract not found` error.
8383+
- [Issue #111](https://github.com/paritytech/contract-issues/issues/111){target=\_blank}
8384+
8385+
### Development Tools
8386+
8387+
- **`hardhat-polkadot` plugin compilation issues**: Plugin interferes with standard `npx hardhat compile` command.
8388+
- [Issue #44](https://github.com/paritytech/contract-issues/issues/44){target=\_blank}
8389+
8390+
### Contract Patterns
8391+
8392+
- **Minimal proxy (EIP-1167) deployment fails**: Standard proxy contracts cannot be deployed on PolkaVM.
8393+
- [Issue #86](https://github.com/paritytech/contract-issues/issues/86){target=\_blank}
8394+
8395+
### Compilation
8396+
8397+
- **`SDIV` opcode crash**: Compiler crashes with `Unsupported SDIV` assertion failure.
8398+
- [Issue #342](https://github.com/paritytech/revive/issues/342){target=\_blank}
83728399
--- END CONTENT ---
83738400

83748401
Doc-Content: https://docs.polkadot.com/develop/smart-contracts/

0 commit comments

Comments
 (0)