Skip to content

Commit

Permalink
change AddressType
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielaDelPilarR committed Apr 22, 2024
1 parent bec0041 commit 9652b83
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
3 changes: 2 additions & 1 deletion packages/nextjs/components/SimpleNFT/NFTcard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import ButtonStyle from "../ButtonStyle/ButtonStyle";
import { Collectible } from "./MyHoldings";
import { AddressInput } from "../scaffold-stark";
import { Address } from "../scaffold-stark";
import { Address as AddressType } from "@starknet-react/chains";
export const NFTCard = ({ nft }: { nft: Collectible }) => {
const [transferToAddress, setTransferToAddress] = useState("");

Expand Down Expand Up @@ -38,7 +39,7 @@ export const NFTCard = ({ nft }: { nft: Collectible }) => {
</div>
<div className="flex space-x-3 mt-1 items-center">
<span className="text-lg font-semibold">Owner : </span>
<Address address={nft.owner} />
<Address address={nft.owner as AddressType} />
</div>
<div className="flex flex-col my-2 space-y-1">
<span className="text-lg font-semibold mb-1">Transfer To: </span>
Expand Down
8 changes: 4 additions & 4 deletions packages/nextjs/contracts/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const deployedContracts = {
devnet: {
Challenge0: {
address:
"0x04a7e50c3a28e839fae9a4d34aea69267c52ba01baed5874316432a0dc530231",
"0x0564a6d4e70fea6ebb2e038108484654d1374cd7e478559b7097444a1f15ca57",
abi: [
{
type: "impl",
Expand Down Expand Up @@ -534,7 +534,7 @@ const deployedContracts = {
},
ExampleExternalContract: {
address:
"0x0001ca25a4a6345a76ddb59b4fd5e3a256f4381f573a1af20b35083f64464779",
"0x009a15de9aa27c630ecfbc1f063410fa3525511a530d01e9a4dd69bdd026538a",
abi: [
{
type: "impl",
Expand Down Expand Up @@ -609,7 +609,7 @@ const deployedContracts = {
},
Challenge1: {
address:
"0x0163b18efaa22b6acd98076ca426d90d8a0d5160d7a4bc7b7e270771189bd8fd",
"0x024a1de305ae560434aff366d59c1a4eea440e28b579e2ec339a7b6d81d686d5",
abi: [
{
type: "impl",
Expand Down Expand Up @@ -793,7 +793,7 @@ const deployedContracts = {
},
PresetERC1155: {
address:
"0x046938668dc324112eebe0fa5975751360df9532472faf2b8a1db3e8eb2a4497",
"0x0369c78b328bd5b86fea5e4df7128535e32c296efdf43193c58864a0c231b362",
abi: [
{
type: "impl",
Expand Down
34 changes: 17 additions & 17 deletions packages/snfoundry/scripts_js/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ const deployScript = async () => {
// "Challenge0"
// );

const values = {
classHash: helloStarknetClassHash,
abi: helloStarknetAbi,
address: ContractAddress,
} = await deployContract(null, "ExampleExternalContract");
await deployContract({ external_contract_address: values.address, eth_contract_address: "0x49D36570D4E46F48E99674BD3FCC84644DDD6B96F7C741B1562B82F9E004DC7" }
, "Challenge1");
// const values = {
// classHash: helloStarknetClassHash,
// abi: helloStarknetAbi,
// address: ContractAddress,
// } = await deployContract(null, "ExampleExternalContract");
// await deployContract({ external_contract_address: values.address, eth_contract_address: "0x49D36570D4E46F48E99674BD3FCC84644DDD6B96F7C741B1562B82F9E004DC7" }
// , "Challenge1");


//await deployContract(null, "TransferETH");
Expand All @@ -50,16 +50,16 @@ const deployScript = async () => {
// "PresetERC20"
// );

await deployContract(
{
base_uri: "https://example.com/",
recipient:
"0x64b48806902a367c8598f4f95c305e8c1a1acba5f082d294a43793113115691",
token_ids: [2],
values: [100],
},
"PresetERC1155"
);
// await deployContract(
// {
// base_uri: "https://example.com/",
// recipient:
// "0x64b48806902a367c8598f4f95c305e8c1a1acba5f082d294a43793113115691",
// token_ids: [2],
// values: [100],
// },
// "PresetERC1155"
// );

// await deployContract(
// {
Expand Down

0 comments on commit 9652b83

Please sign in to comment.