Metamorphic Testing for Smart Contract Validation:A Case Study of Ethereum-Based Crowdfunding Contracts
Irving Jared Villanueva, Madhusudan Srinivasan, Faqeer Ur Rehman

TL;DR
This paper demonstrates how Metamorphic Testing can effectively validate Ethereum smart contracts by detecting faults, addressing the oracle problem, and improving contract reliability through tailored metamorphic relations and mutation testing.
Contribution
It introduces a set of MRs for smart contract testing and evaluates their effectiveness in detecting faults in an Ethereum crowdfunding contract.
Findings
Metamorphic Relations detected 25.65% of mutants.
Most effective MRs achieved an 89% mutant-killing rate.
MT improves smart contract testing reliability.
Abstract
Blockchain smart contracts play a crucial role in automating and securing agreements in diverse domains such as finance, healthcare, and supply chains. Despite their critical applications, testing these contracts often receives less attention than their development, leaving significant risks due to the immutability of smart contracts post-deployment. A key challenge in the testing of smart contracts is the oracle problem, where the exact expected outcomes are not well defined, complicating systematic testing efforts. Metamorphic Testing (MT) addresses the oracle problem by using Metamorphic Relations (MRs) to validate smart contracts. MRs define how output should change relative to specific input modifications, determining whether the tests pass or fail. In this work, we apply MT to test an Ethereum-based crowdfunding smart contract, focusing on core functionalities such as state…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsFinTech, Crowdfunding, Digital Finance · Blockchain Technology Applications and Security · Private Equity and Venture Capital
