Skip to content

Commit 19ed5cf

Browse files
committed
Add known issues section to FAQs for smart contracts
1 parent fcfe64f commit 19ed5cf

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

develop/smart-contracts/faqs.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,32 @@ 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 `keccak256` hash rather than 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+
- **Empty Hardhat Project Compilation Failure** - New empty projects fail to compile with `hardhat-polkadot` plugin.
174+
- [Issue #132](https://github.com/paritytech/hardhat-polkadot/issues/132){target=\_blank}.
175+
176+
### Contract Patterns
177+
178+
- **Minimal Proxy (EIP-1167) Deployment Fails** - Standard proxy contracts cannot be deployed on PolkaVM.
179+
- [Issue #86](https://github.com/paritytech/contract-issues/issues/86){target=\_blank}.
180+
181+
### Compilation
182+
183+
- **`SDIV` Opcode Crash** - Compiler crashes with 'Unsupported SDIV' assertion failure.
184+
- [Issue #342](https://github.com/paritytech/revive/issues/342){target=\_blank}

llms.txt

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

82788278
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.
8279+
8280+
8281+
## Known Issues
8282+
8283+
### Runtime Behavior
8284+
8285+
- **`creationCode` Returns Hash Instead of Bytecode** - The Solidity keyword returns `keccak256` hash rather than actual creation bytecode.
8286+
- [Issue #45](https://github.com/paritytech/contract-issues/issues/45){target=\_blank}.
8287+
- **Non-Deterministic Gas Usage** - Gas consumption varies slightly for identical transactions.
8288+
- [Issue #49](https://github.com/paritytech/contract-issues/issues/49){target=\_blank}.
8289+
- **Precompiles Not Recognized** - Precompile addresses return "Contract not found" error.
8290+
- [Issue #111](https://github.com/paritytech/contract-issues/issues/111){target=\_blank}.
8291+
8292+
### Development Tools
8293+
8294+
- **`hardhat-polkadot` Plugin Compilation Issues** - Plugin interferes with standard `npx hardhat compile` command.
8295+
- [Issue #44](https://github.com/paritytech/contract-issues/issues/44){target=\_blank}.
8296+
- **Empty Hardhat Project Compilation Failure** - New empty projects fail to compile with `hardhat-polkadot` plugin.
8297+
- [Issue #132](https://github.com/paritytech/hardhat-polkadot/issues/132){target=\_blank}.
8298+
8299+
### Contract Patterns
8300+
8301+
- **Minimal Proxy (EIP-1167) Deployment Fails** - Standard proxy contracts cannot be deployed on PolkaVM.
8302+
- [Issue #86](https://github.com/paritytech/contract-issues/issues/86){target=\_blank}.
8303+
8304+
### Compilation
8305+
8306+
- **`SDIV` Opcode Crash** - Compiler crashes with 'Unsupported SDIV' assertion failure.
8307+
- [Issue #342](https://github.com/paritytech/revive/issues/342){target=\_blank}
82798308
--- END CONTENT ---
82808309

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

0 commit comments

Comments
 (0)