Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add recipient in safeMint params #4

Merged
merged 5 commits into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading