CRYPTO NEWS

TypeError: helloWorld.helloWorld is not a function

Hi I created pretty simple contract –

// SPDX-License-Identifier: MIT pragma solidity ^0.8.7;  contract HelloWorld {     function helloWorld () public view returns (string memory) {         return "Hello World";     } } 

When I try to call the helloWorld() in my deploy script –

module.exports = async ({ getNamedAccounts, deployments }) => {     const { deploy, log } = deployments     const { deployer } = await getNamedAccounts()      const helloWorld = await deploy("HelloWorld", {         from: deployer,         args: [],         log: true,         waitConfirmations: network.config.blockConfirmation || 1,     })     console.log(`contract deployed at ${helloWorld.address}`)     await helloWorld.helloWorld() } 

It shows an error –

TypeError: helloWorld.helloWorld is not a function 

I am using hh deploy to run deploy script present in the deploy folder and the contract is deploying successfully.

Have already installed all the packages and hardhat-deploy as well, and hardhat.config looks also fine to me, and using same solidity version, I cannot find a solution online and same issue arises during writing tests for the contract. Any help would be great with little explanation, Thanks.

RSA with huge ciphertext

I am trying to find the flag from an RSA ciphertext, I am able to get the factors from factordb.com but the given e is not coprime with phi(n). One weird thing that I observed is that n and cipher_int has 10264 digits (looks like an integer). I am very new to crypto, Any ideas::Listen

I am trying to find the flag from an RSA ciphertext, I am able to get the factors from factordb.com but the given e is not coprime with phi(n). One weird thing that I observed is that n and cipher_int has 10264 digits (looks like an integer). I am very new to crypto, Any ideas on how I can solve this?

TypeError: helloWorld.helloWorld is not a function

Shopping cart
There are no products in the cart!
Continue shopping
0