---
title: "Discussion on \"Hello World! An Introduction To Solidity Smart Contracts\" | Hashnode"
description: "Discussion on \"Hello World! An Introduction To Solidity Smart Contracts\". An in depth introduction to the basic structure of a Solidity smart contract."
url: "https://hashnode.com/posts/hello-world/61731da90f452c1cd94f91cb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Hello World! An Introduction To Solidity Smart Contracts](https://blog.paulmcaviney.ca/hello-world?utm_source=hashnode&utm_medium=feed)

An in depth introduction to the basic structure of a Solidity smart contract.

Oct 22, 2021 · 7 min read · blog.paulmcaviney.ca  
Updated Dec 18, 2021  
Read the article

-   [#solidity](https://hashnode.com/tag/solidity)
-   [#web3](https://hashnode.com/tag/web3)
-   [#smart-contracts](https://hashnode.com/tag/smart-contracts)
-   [#hello-world](https://hashnode.com/tag/hello-world)

## Written by

[Paul McAviney](https://hashnode.com/@0xPaulie)

@0xPaulie · Edmonton, AB Canada

  
[View profile](https://hashnode.com/@0xPaulie)

Freelance Web3 Technical Writer

I'm a creative problem solver interested in the Web3 space. I love all the innovation and seems like there's always something new to quench my insatiable desire to learn. I've been a hobbyist developer for the past 5 years dabbling in Unity game development (c#), python, java and javascript. Now super interested in Solidity and looking to pursue a career in Web3. I started this blog as a means to solidify my own learning, as well as hopefully help some others out on the same path as me

## Responses 2

Markdown supported · ⌘↵ to post

[kerry okpere](https://hashnode.com/@Kerry)

[Nov 2, 2021](https://hashnode.com/posts/hello-world/61731da90f452c1cd94f91cb/comment/6181a9c5b4753831f932d1e5)

Great job on the explanation 👏🏽👏🏽👏🏽

I wanted to highlight a mistake on the initial code

instead of

`pragma solidity ^0.8.7;`

you have

`pragma solidy ^0.8.7;`

so I think it should be

```
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.7;

contract HelloWorld {
    function sayHello() public pure returns (string memory) {
        return "Hello World!";
    }
}
```

I hope you found this helpful.

[Paul McAviney](https://hashnode.com/@0xPaulie)

[Nov 2, 2021](https://hashnode.com/posts/hello-world/61731da90f452c1cd94f91cb/comment/6181a9c5b4753831f932d1e5#reply-6181ad85b4753831f932d204)

Ahh thank you so much for pointing that out! I'll fix it right away 😊

[Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou)

[Oct 29, 2021](https://hashnode.com/posts/hello-world/61731da90f452c1cd94f91cb/comment/617beb9f71eb90577c64178e)

Good job explaining everything [Paul McAviney](https://hashnode.com/@0xPaulie) 👏
