fix: copy-paste compile and fact errors across native and evm samples

Aperta
#795 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
74/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, java, javascript, markdown, solidity
Ambito
documentation

Direzione di ricerca

Pick a single table row (they are grouped per page, e.g. native/tokens/unfreeze.mdx or keys/mnemonic-generate.mdx) and open the referenced SDK source file/line listed in the source column to confirm the exact method name before editing the .mdx snippet. Done means the corrected snippet matches the named upstream method (or stated fact) and, per the acceptance checklist, you state in the PR how the snippet was verified to compile or type-check. Items marked [confirm with maintainer] and the acceptance box closes #562 need maintainer confirmation, so avoid starting there.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Audit Bug P0 tab/evm tab/native

parent: #785

sources: verified 2026-10-06 against docs f0c4c87d, hiero-sdk-js 165df3acad (2.89.1), hiero-sdk-java 4d3646376e (2.78.0), hiero-sdk-go 2c21d88e12 (v2.85.1), hiero-mirror-node 4a946f1d9b (release v0.164.0), hiero-json-rpc-relay d430b651c7 (release v0.79.0), hiero-consensus-node 3589298689 (release v0.77.2), hiero-contracts 5ade6c8c0c, hedera-smart-contracts 43854b5c92.

what's wrong

each item below fails to compile or run as written, or states a wrong fact a developer would copy. all are verified against the sources above. one-line fixes, so they can be split per tab if review gets long.

native/tokens

file:line fix source
transfer.mdx:95-96 Go amounts -1/0 → -1/1 (not zero-sum) response_code.proto:658
define.mdx:125 Java setTokenMetadata TokenCreateTransaction.java:838
define.mdx:178 Go SetTreasuryAccountID token_create_transaction.go:313
define.mdx:19 keys can be removed with an empty KeyList (HIP-540) token_update.proto:44-46
update.mdx:40,90 Java setTokenMetadata, Go SetTokenMetadata TokenUpdateTransaction.java:672; .go:413
claim.mdx:33, cancel.mdx:26 Java addPendingAirdrop PendingAirdropLogic.java:78
claim.mdx:17,36,57,81,108 the receiver signs, not the sender token_claim_airdrop.proto
claim.mdx:126 example link 404 → hiero-sdk-js examples/token/airdrop.js curl
reject-airdrop.mdx:78-81,199-202 Go SetOwnerID, AddTokenID, two-value assign token_reject_transaction.go:58,73,82
unfreeze.mdx:49,74,84 receipt8 → receipt; Go NewTokenUnfreezeTransaction token_unfreeze_transaction.go:37
wipe.mdx:84-87 Go builds a burn; use NewTokenWipeTransaction().SetAccountID token_wipe_transaction.go:89
pause.mdx:63, unpause.mdx:49 stray ; before .freezeWith syntax
dissociate.mdx:43 Java setTokenIds(List.of(tokenId)) TokenDissociateTransaction.java:137
update-nft-metadata.mdx:39-108 Java setSerials; undefined variables in JS/Go TokenUpdateNftsTransaction.java:114
disable-kyc.mdx:7 delete "you can submit a TokenUpdateTransaction to provide the token with this key" token_update.proto:41-43
mint.mdx:12-13 NFT metadata is mutable with a metadata key; 100 bytes; max 10 per mint token_update_nfts.proto; TokensConfig.java:37,46
update.mdx:9, delete.mdx:7 TOKEN_IS_IMMUTABLE spelling response_code.proto:678

native/transactions, keys, accounts, fundamentals, services

file:line fix source
transactions/submit.mdx:66, record.mdx:148, modify-fields.mdx:62, unsigned.mdx:38 JS setKeyWithAlias(key) (one arg) throws → setECDSAKeyWithAlias(key). JS only; Java one-arg is valid. AccountCreateTransaction.js:316,596-610
transactions/multisig.mdx:31-66 +1/-1 reversed (Java/JS/Go); Java missing ) page :15
transactions/multisig.mdx:169 "6,144 kb" → bytes; default max fee isn't 1 hbar (see P1 fee table) HederaConfig.java:38; Transaction.js:213
transactions/receipt.mdx:57, record.mdx:69 Go SetTransactionID transaction_receipt_query.go:100
transactions/modify-fields.mdx:119,132,135 setNodeAccountIds; JS getter Executable.java:255
prng.mdx:76,82-85 Go undefined var; inverted nil check panics transaction_record.go:48
scheduled/sign.mdx:94, delete.mdx:65,88 Go receipt.Status is not a pointer; missing . transaction_receipt.go:18
keys/import-key.mdx:15,24,33,50 ECDSA sample key is 99 hex chars computed
keys/generate-key-pair.mdx:44,127 Go PrivateKeyGenerateEcdsa / PrivateKeyGenerateEd25519 crypto.go:110,126
keys/mnemonic-generate.mdx:37 Go GenerateMnemonic24 mnemonic.go:30
keys/mnemonic-recover.mdx:16 Java getPublicKey() PrivateKey.java:358
accounts/transfer.mdx:81,102 no 3-arg addHbarTransfer TransferTransaction.java:169,181
accounts/create.mdx:300 Java EvmAddress evmAddress = … PublicKey.java:270
fundamentals/client.mdx:11,13 default mirror is mainnet-public.mirrornode.hedera.com:443 (doc says :433) MirrorNetwork.java:50
fundamentals/local-network.mdx:32 Go local port 35211 client.go:258-260
smart-contracts/call.mdx:30,53,76,104 setGas(100_000_000) exceeds the 15M cap → ~100_000 ContractsConfig.java maxGasPerTransaction 15000000
consensus/get-message.mdx:39-45 JS subscribe(client, errorHandler, listener). 2 args drops messages silently. TopicMessageQuery.js:317-332,378
consensus/submit-message.mdx:175,193 Go NewTopicMessageSubmitTransaction topic_message_submit_transaction.go:26
files/append.mdx:38 setMaxChunks (not setMaxChunkSize); maxChunks 20; JS chunk 4096 vs Java/Go 2048 ChunkedTransaction.java:137

native tutorials

file:line fix
tutorials/tokens/create-transfer-nft.mdx:229,1081 Go Sign returns one value (transaction.go:1305)
tutorials/tokens/airdrop-campaign.mdx:767 Bob created with Alice's EVM address (duplicate alias fails)
tutorials/tokens/hts-part1-mint.mdx:426,684 (+part2:510, part3:483) "1HBAR = 10,000,000 Tinybar" → 100,000,000
tutorials/consensus/submit-first-message.mdx:216 Go 30*time.Second
tutorials/consensus/private-topic.mdx:154,273 Java semicolons

evm

file:line fix source
development/gas-fees.mdx:256 MAX_GAS_LIMIT_EXCEEDED (the documented code doesn't exist) response_code.proto:594
development/gas-fees.mdx:231 CONSENSUS_GAS_EXHAUSTED, checked before execution response_code.proto:1088
development/deploying.mdx:67, gas-fees.mdx:171 callData 128 KiB / initcode 49,152 / runtime 24,576 (not "24KB creation") [confirm with smart contracts maintainer] JumboTransactionsConfig.java:15; ContractsConfig.java:176
development/deploying.mdx:198 block.prevrandao returns entropy, not 0 CustomPrevRandaoOperation.java
development/creating.mdx:21 pragma solidity ^0.8.24 solc
overview/why-hedera-for-evm.mdx:28-31, choose-your-path.mdx:62 no HCS system contract; don't list HCS as callable from Solidity exec/systemcontracts/
hedera-services/system-contracts/hts.mdx:12 cryptoTransfer (TransferList, TokenTransferList[]) is released ClassicTransfersTranslator.java:39; ContractsConfig.java:82
hedera-services/system-contracts/schedule-service.mdx:139 scheduleCall waits for expiry ScheduleCallDecoder.java:55-69
differences/json-rpc-differences.mdx:57-70,112-115 curl quoting; eth_getUncleCountByBlockHash → 0x0; stateRoot is the empty-trie root live Hashio
differences/native-devs/json-rpc-state-queries.mdx:23,53 no eth_sendTransaction (-32601); /api/v1/balances?account.id=…&timestamp= live
integrations/wallets/metamask-snap-tutorial.mdx:83 cd hedera-example-metamask-snap clone URL :75
tools/foundry/forking-advanced-hts.mdx:645 fork block ≥ 33427513 (contract and token don't exist at 33427481) mirror
support/glossary.mdx:123 blocks about every 2 s, not 12 live /api/v1/blocks

acceptance

  • each fixed snippet compiles or type-checks (state how in the PR).
  • closes #562.

files: as listed

related: closes #562. touches pages in #744 (items 2-4 are separate typos; merge if convenient).

Lingua principale
MDX
Stelle
11
Fork
52
Merge medio
23h 54m
PR unite (30g)
23

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hashgraph/hedera-docs

Tutte le issue di hashgraph/hedera-docs

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.