Hey anyone here familiar with Next.js... I am stuck on an error pls help
Nov 30, 2022, 9:27 PM
Shoot
Nov 30, 2022, 9:27 PM
const NFT = ()=> {
const [loading, setLoading] = useState(false)
return (
{ loading ? (
) : (
{/* */}
{/* */}
{/* */}
{/* */}
)
}
)
}
const [loading, setLoading] = useState(false)
return (
{ loading ? (
Loading Please Wait...
) : (
{/*
{/*
{/*
{/*
)
}
)
}
Console returning Syntax error , what should I do
Nov 30, 2022, 9:28 PM
Sorry, lemme check again
Nov 30, 2022, 9:30 PM
below style.wrapper div?
oh okay
no tried it
Nov 30, 2022, 9:31 PM
Take the div above TopNavbarLayout (the one below)
Place it one step above
Place it one step above
Or the last div is an excess
Nov 30, 2022, 9:32 PM
sorry I didn't get it?
Nov 30, 2022, 9:33 PM
Nov 30, 2022, 9:36 PM
Thanks so much for the help I really appreciate
Nov 30, 2022, 9:37 PM
transact to Prediction.pauseProtocol errored: [ethjs-query] while formatting outputs from RPC '{"value":{"code":-32603,"data":{"code":-32000,"message":"transaction type not supported"}}}'
@grimreaper619 I'm getting this error whenever I try to execute a function
A view function works fine
A view function works fine
What do you call a function that requires a private key to be executed/isn't a read function??
Nov 30, 2022, 11:14 PM
How does your tx params looks like
Nov 30, 2022, 11:17 PM
isn't code 32000 a gas error?
Nov 30, 2022, 11:18 PM
Currently,it's a string
I have another function, closePredictions() that takes 3 params, epoch, homescore and awayscore
Doesn't work also
Doesn't work also
Nov 30, 2022, 11:18 PM
I mean its contents. Its probably because of using invalid params on your tx
Nov 30, 2022, 11:19 PM
Lemme share you the code snippet
function closeMatch(uint epoch, uint _homeScore, uint _awayScore) external isAdmin nonReentrant
I increased the gas
No changes
No changes
Nov 30, 2022, 11:22 PM
Not the function signature, how are you calling it?
Nov 30, 2022, 11:22 PM
I'm using remix at the moment
Nov 30, 2022, 11:22 PM
Etherscan, web3 script?
Nov 30, 2022, 11:22 PM
I also tried using a script in Node environment, it's error was focused on gas
Nov 30, 2022, 11:23 PM
Ah ok. Which network is the contract in?
Nov 30, 2022, 11:23 PM
KCC
const closeMatch = async () => {
const tx = await instance.closeMatch(26, 0, 2);
await tx.wait();
console.log(tx.hash);
};
Here's the script
const tx = await instance.closeMatch(26, 0, 2);
await tx.wait();
console.log(tx.hash);
};
Here's the script
Nov 30, 2022, 11:24 PM
I've seen this error happen when you use type 2 transaction params on a network which doesn't support that
Nov 30, 2022, 11:25 PM
What's a type 2 param??
Nov 30, 2022, 11:25 PM
MaxPrioritygas, maxFeePerGas...
But this shouldn't cause that issue...
Nov 30, 2022, 11:28 PM
I'm trying to close match 26, I closed match 24 3 days ago and it went fine
Now, I'm trying to close match 22 and it's bringing same error
So I'm concerned
Now, I'm trying to close match 22 and it's bringing same error
So I'm concerned
Nov 30, 2022, 11:28 PM
Maybe try specifying gas limit
Nov 30, 2022, 11:28 PM
This one brings me a gas estimation error
Does this come from Remix??
Okay thanks
Nov 30, 2022, 11:29 PM
Nah it has nothing to do with contract state, tx is not getting built in the first place
And gas price too. Also if kcc have a different rpc url, try that as well
Nov 30, 2022, 11:30 PM
Okay
I only know one RPC lol
But will try both. Thanks
But will try both. Thanks
Transaction stuck at pending lol
I'm thinking, the issue has to be from the RPC URL
Though, other transactions from other contracts are going through easy
Though, other transactions from other contracts are going through easy
Nov 30, 2022, 11:52 PM