frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: What are common mistakes in Move smart contract development?

1•Pushkarm029•2h ago
I've been auditing Sui Move contracts and keep finding some subtle bugs that slip through despite Move's strong type system. Curious if others have run into similar issues.

Hot potato pattern with accidental "drop":

The pattern relies on structs with zero abilities to force explicit consumption. But I keep seeing developers accidentally add "has drop":

struct FlashLoanReceipt has drop { // Bug: can now be ignored pool_id: ID, amount: u64, }

Now the receipt just gets auto-dropped and tokens aren't returned. Found this in production code right before deployment.

Missing phantom type parameters:

Receipts that don't bind to the coin type being used:

struct PaymentReceipt { // Missing: phantom CoinType amount: u64, }

Someone can pay with worthless ScamCoin, get a receipt, then claim real items. Adding "phantom CoinType" fixes this but it's easy to miss.

Option<T> with non-droppable types:

Even empty Options need explicit option::destroy_none() calls if they wrap non-droppable types. This catches people off guard.

Related: the Cetus incident ($220M, May 2025)

The bug wasn't in Cetus's code but in integer-mate, a math library dependency. Three audits checked ability annotations carefully but glossed over dependencies. Type safety prevented whole vulnerability classes but couldn't catch the bit-shift validation error.

Move's type system is genuinely better than alternatives, but adding "has drop" to a hot potato doesn't generate warnings - it just silently works. Same with "copy + drop" on tokens.

I've started treating ability annotations as the most security-critical part of the code, not just boilerplate.

What mistakes have you seen in Move development? Are there other patterns beyond abilities that trip people up? Would love to hear what's caught you or your teams.

Hanami for Rails Developers – Part 1

https://ryanbigg.com/2025/10/hanami-for-rails-developers-1-models
1•ryanbigg•3m ago•0 comments

Leak suggests US Government is fibbing over FEMA security failings

https://www.theregister.com/2025/10/06/infosec_in_brief/
2•defrost•4m ago•0 comments

The Zionist Occupation of Open Source

https://moneo.com.tr/blog/the-zionist-occupation-of-open-source
8•selim17•10m ago•0 comments

The Debugging Book

https://www.debuggingbook.org/
1•signa11•18m ago•0 comments

Clop crew hits Oracle E-Business Suite users with fresh zero-day

https://www.theregister.com/2025/10/06/clop_oracle_ebs_zeroday/
1•jjgreen•18m ago•0 comments

Show HN: Iframetest.com

https://iframetest.com/
1•tonysurfly•19m ago•0 comments

Show HN: Fast Masked Mail Creator – Chrome Extension for Fastmail Masked Emails

https://chromewebstore.google.com/detail/fast-masked-mail-creator/jgnkjcmgagjaabogldbabgbcncakpdbb
1•tmarice•19m ago•0 comments

2 Math Problems Fall to LLM: Tsumura's 554 solved, Majority Optimality Disproved

https://nednex.com/en/two-notorious-math-problems-fall-to-llm-tsumuras-554th-solved-majority-opti...
1•SweetSoftPillow•21m ago•0 comments

Tutorials for Sandia's Lammps Simulation Package

https://arxiv.org/abs/2503.14020
1•northlondoner•21m ago•1 comments

Tone Control

https://www.robinsloan.com/lab/tone-control/
1•thomasjb•23m ago•0 comments

Build a VPN Tunnel with Wintun on Windows – Part 1

https://0xmm.in/posts/peer-to-peer-windows-part1/
2•accessonline•24m ago•1 comments

NetBird – An Open-Source Tailscale Alternative

https://netbird.io
2•akyuu•26m ago•0 comments

Nobel Prize in Physiology or Medicine 2025 awarded to immune system researchers

https://www.nobelprize.org/prizes/medicine/2025/press-release/
4•lode•32m ago•0 comments

Meta announces launch of APAC's 'largest capacity subsea cable' in 2028

https://subseacables.blogspot.com/2025/10/the-new-candle-cable-system-project.html
3•Henry3•33m ago•0 comments

-

https://engineering.fb.com/2025/10/05/connectivity/introducing-the-candle-subsea-cable-updates-to...
3•Henry3•35m ago•0 comments

Testing two 18 TB white label SATA hard drives from datablocks.dev

https://ounapuu.ee/posts/2025/10/06/datablocks-white-label-drives/
2•thomasjb•38m ago•0 comments

Love Money Harvey – Free Adult Visual Novel and Finance Game

https://lovemoneyharvey.com
1•heihieih•46m ago•0 comments

EasyOS: An Experimental Linux Distribution

https://easyos.org/
2•signa11•48m ago•0 comments

Granite-4.0-Micro: a 3.4B parameter LLM that runs in the browser

https://huggingface.co/spaces/ibm-granite/Granite-4.0-WebGPU
3•victormustar•51m ago•0 comments

Show HN: How to create your own custom decentralized lotteries

https://LotteryHouse.Me
2•scanmed•57m ago•0 comments

Cerebras Withdraws IPO Filing

https://www.sec.gov/Archives/edgar/data/2021728/000119312525230382/d886849drw.htm
3•JumpCrisscross•58m ago•1 comments

Django: One ORM to rule all databases

https://www.paulox.net/2025/10/06/django-orm-comparison/
5•pauloxnet•1h ago•0 comments

Understanding Object-Oriented Programming

https://understandingoop.com/
5•ma-px•1h ago•0 comments

The 'Best' Colleges Aren't the Best Forever

https://www.theatlantic.com/ideas/archive/2025/10/ivy-league-schools-prestige/684454/
1•FinnLobsien•1h ago•0 comments

Crypto-Current (2021)

https://zerophilosophy.substack.com/p/crypto-current
1•keepamovin•1h ago•0 comments

Full code to build your own AI agent with Python

https://thenewaiorder.substack.com/p/how-to-code-an-ai-agent-text-to-sql
4•ClaireGz•1h ago•0 comments

A terminal command that tells you if your USB-C cable is bad

https://kau.sh/blog/usbi/
1•freetonik•1h ago•0 comments

Opus 4.1 12× Reduced on Max Plan, Sonnet 4.5 Considered Lagging

https://github.com/anthropics/claude-code/issues/8449
3•virtualritz•1h ago•3 comments

Neutts-air – open-source, on device TTS

https://github.com/neuphonic/neutts-air
3•nopelynopington•1h ago•1 comments

Cap'n Proto in Wasm

https://mikel.xyz/posts/capnp-in-wasm/
2•mikelsr•1h ago•0 comments