Skip to content

Commit

Permalink
Add recipient in safeMint params (#4)
Browse files Browse the repository at this point in the history
* add recipient in params

* clean up

* deployed to mainnet

* fix content

* add deployment
  • Loading branch information
julienbrg authored Mar 1, 2024
1 parent 070213e commit 866ed24
Show file tree
Hide file tree
Showing 10 changed files with 1,982 additions and 29 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ The NFT gives you access to the Arthera Whitepaper.

- UI Github repo: https://github.com/w3hc/awp-ui
- Web app: https://whitepaper.arthera.net/
- Mainnet deployment (verified): https://explorer.arthera.net/address/0xc005A14D96f1bBCc6d75c82F10cB615333DEc991?tab=contact_code

## Install

Expand Down
4 changes: 2 additions & 2 deletions contracts/ArtheraWhitepaper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ contract ArtheraWhitepaper is
return "mode=timestamp";
}

function safeMint() public {
function safeMint(address _recipient) public {
uint256 tokenId = _nextTokenId++;
_safeMint(msg.sender, tokenId);
_safeMint(_recipient, tokenId);
_setTokenURI(tokenId, uri);
}

Expand Down
4 changes: 2 additions & 2 deletions deploy/deploy-arthera-whitepaper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ export default async ({ getNamedAccounts, deployments }: any) => {
"Arthera Whitepaper NFT contract deployed:",
msg(awp.receipt.contractAddress)
)

break

case "arthera-testnet":
console.log(
"Arthera Whitepaper NFT contract deployed:",
msg(awp.receipt.contractAddress)
)

break

case "sepolia":
try {
console.log(
Expand Down
44 changes: 25 additions & 19 deletions deployments/arthera-testnet/ArtheraWhitepaper.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions deployments/arthera/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10242
Loading

0 comments on commit 866ed24

Please sign in to comment.