Category "smartcontracts"

How to view the exported functions of a smart contract in Elrond

Is there any way to see the exported functions of a smart contract deployed by somebody else given the address of the contract? I tried in explorer and all I wa

Who i can create Developer and marketing fee with burn for my smart contract?

I did a lot of research and looked at different classes but could not create anything similar. Is there a project property that I can use?

Error: PollingBlockTracker - encountered an error while attempting to update latest block: Error: ETIMEDOUT

I want to run a code in my terminal. " truffle migrate --network ropsten" 1_initial_migration runs correctly, but I have an error for 2_deploy_conracts.js like

training CNN model using word2vectorization,while invoking get_vector() .Showing error " KeyError: 'CALLDATASIZE' " while preparing train_x

set of word vectors are generated from github link:https://github.com/jianwei76/SoliAudit/blob/master/va/features/op.origin.csv.xz. Converted this op.origin.csv

Gas estimation failed: 'invalid opcode: INVALID'. This transaction will likely revert. If you wish to broadcast, you must set the gas limit manually

I adapted the code from this tutorial for my needs. It works fine at rinkeby network, but I am getting an error when I try to run it on Mumbai network. Advanced

truffle + npm exception

I am getting the following exception in Chrome console screen when I start my frontend app. Can you help me how to figure out the issue index.ts:261 Uncaught (i

How do I develop an auto-staker for an NFT game with solidity?

I'm relatively new to solidity development and coding in general, but I'd really like to try and write a program that stakes and un-stakes an NFT after 24 hours

How to get right msg.sender calling from contract instance a.foo() and have all secure from 3rd parties

I got stucked in thoughts guys and I need bit of clarification to move it forward. (Description is about real problem, code is for best (I hope so..) understand

loops in my smart contract that I cant find

I'm testing my contract and I got the following error: Gas costs: Gas requirement of function vjkNFT.safeMint is infinite: If the gas requirement of a function

Ethtx tasks can be used with webhook jobs

I would like to know if ethtx tasks can be used with webhook jobs. I tried to run the job from the operator UI and it returns an internal server error, when I l

I am getting "AssertionError: Expected transaction to be reverted with Username " when I am testing my solidity code

When I am running npx hardhat test on the below smartcontract I am getting AssertionError: Expected transaction to be reverted with Username is taken please try

Is there any way to increase compute unit in building on-chain program of Solana

I crashed with error of exceeding maximum unit of compute units while developing on-chain program of Solana. Is there any way to increase maximum compute unit?

contract deployment using brownie and ganache

I want to deploy a contract using brownie. after inserting the brownie run scripts/deploy.py in the terminal of Pycharm, the following message appeared and noth

Hardhat: ProviderError: The execution failed due to an exception

I'm deploying contracts with hardhat, but cannot use address type in contracts ProviderError: The execution failed due to an exception. at HttpProvider.requ

BitQuery wrong data/not real time

Hi I started playing with BitQuery graphql to see if it would help me with querying blockchain data. I love the idea of single API for most of the blockchains.

TypeError: Unknown file extension ".ts" in a Solana Anchor project

I got this error after updating Solana-cli to 1.9.4 and Anchor-cli to 0.20.1 and other local npm versions... Local npm package: @project-serum/anchor 0.18.2 Sol

What is the valid name of the contact?

I'm trying to give a name to my smart contract. But All given names is invalid. Where is the mistake? Because I guess all names are alpha-numeric. Can you help

Chainlink node CRON job. How does it get paid?

these are the docs https://docs.chain.link/docs/jobs/types/cron/ type = "cron" schemaVersion = 1 schedule = "CRON_TZ=UTC * */20 * * * *"

How do I resolve this Hardhat CompilerError? (Stack too deep when compiling inline assembly)

I'm analyzing the Chainrunners smart contracts, so I went on Etherscan and copied the verified contract source code. When I tried to compile without solidity op

Remix: call to Send2MySC.getRate errored: execution reverted > When call a function from an imported contract

In Remix Rinkeby Network, I have built 2 contracts in the same folder: GetETHUSD.sol: to retrieve eth/usd exchange rate Send_2_SC: send wei to this contract an