Skip to content

Commit

Permalink
fixed rep createToken bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed Apr 6, 2024
1 parent 16955b7 commit c45f26a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/foundry/lib/reputation
2 changes: 1 addition & 1 deletion packages/foundry/script/DeployDemo.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {ReputationFaucet} from "../contracts/Reputation/ReputationFaucet.sol";
contract DeployDemoScript is ScaffoldETHDeploy {
error InvalidPrivateKey(string);

address controller = 0x4161f8A8DfF60aEdB63baFb7d5843b0988393eC9; //replace with burner or other address from wallet!
address controller = 0x2F15D4A66D22ecC6967928b6A76Ab06897b05676; //replace with burner or other address from wallet!

function run() external {
uint256 deployerPrivateKey = setupLocalhostEnv();
Expand Down
50 changes: 43 additions & 7 deletions packages/nextjs/contracts/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import { GenericContractsDeclaration } from "~~/utils/scaffold-eth/contract";
const deployedContracts = {
31337: {
ReputationTokens: {
address: "0xaB7B4c595d3cE8C85e16DA86630f2fc223B05057",
address: "0x1fA02b2d6A771842690194Cf62D91bdd92BfE28d",
abi: [
{
type: "constructor",
inputs: [
{
name: "owner",
name: "newOwner",
type: "address",
internalType: "address",
},
Expand Down Expand Up @@ -129,6 +129,42 @@ const deployedContracts = {
],
stateMutability: "view",
},
{
type: "function",
name: "_createToken",
inputs: [
{
name: "tokenProperties",
type: "tuple",
internalType: "struct ReputationTokens.TokenProperties",
components: [
{
name: "tokenType",
type: "uint8",
internalType: "enum ReputationTokens.TokenType",
},
{
name: "maxMintAmountPerTx",
type: "uint256",
internalType: "uint256",
},
],
},
{
name: "id",
type: "uint256",
internalType: "uint256",
},
],
outputs: [
{
name: "tokenId",
type: "uint256",
internalType: "uint256",
},
],
stateMutability: "nonpayable",
},
{
type: "function",
name: "balanceOf",
Expand Down Expand Up @@ -1476,7 +1512,7 @@ const deployedContracts = {
},
},
ReputationFaucet: {
address: "0x12Bcb546bC60fF39F1Adfc7cE4605d5Bd6a6A876",
address: "0xf4B146FbA71F41E0592668ffbF264F1D186b2Ca8",
abi: [
{
type: "constructor",
Expand Down Expand Up @@ -1601,7 +1637,7 @@ const deployedContracts = {
},
},
Hats: {
address: "0x071586BA1b380B00B793Cc336fe01106B0BFbE6D",
address: "0x49fd2BE640DB2910c2fAb69bB8531Ab6E76127ff",
abi: [
{
type: "constructor",
Expand Down Expand Up @@ -3562,7 +3598,7 @@ const deployedContracts = {
},
},
MultiClaimsHatter: {
address: "0xccf1769D8713099172642EB55DDFFC0c5A444FE9",
address: "0xA4899D35897033b927acFCf422bc745916139776",
abi: [
{
type: "constructor",
Expand Down Expand Up @@ -3888,7 +3924,7 @@ const deployedContracts = {
},
},
ActiveModule: {
address: "0x2Dd78Fd9B8F40659Af32eF98555B8b31bC97A351",
address: "0xAA292E8611aDF267e563f334Ee42320aC96D0463",
abi: [
{
type: "function",
Expand Down Expand Up @@ -3918,7 +3954,7 @@ const deployedContracts = {
inheritedFunctions: {},
},
ERC1155EligibiltiyModule: {
address: "0x56fC17a65ccFEC6B7ad0aDe9BD9416CB365B9BE8",
address: "0x5c74c94173F05dA1720953407cbb920F3DF9f887",
abi: [
{
type: "constructor",
Expand Down

0 comments on commit c45f26a

Please sign in to comment.