Меню

Currently you have no contract instances to interact with ошибка

I’m trying to write my first smart contract by copying code from a video online. The instructor could «Deploy» but for some reason I’m getting this error message even though the code is exactly the same.
enter image description here

Dharman's user avatar

Dharman

29.2k21 gold badges79 silver badges131 bronze badges

asked Jul 14, 2020 at 3:23

blockchainstephen's user avatar

1

It seems you have not compiled your contract. You can simply compile by clicking compile button available. Please refer to the image
Compile button Snap.

ouflak's user avatar

ouflak

2,43810 gold badges43 silver badges49 bronze badges

answered Jan 25, 2022 at 9:15

ihtisham javed's user avatar

1

The area where this message is shown is where deployed contracts are listed. This is simply stating that you haven’t yet deployed a contract.

In the contracts drop down, I see you do not have a contract selected. You’ll need to select a compiled contract to deploy. If there aren’t any, its because you haven’t yet compiled one. You’ll need to select a .sol file in the compiler panel, and run the compiler. Once complete, you should see the compiled contract in the drop down.

Once you hit deploy, assuming the selected contract deploys successfully, you’ll see the contract listed here.

answered Sep 28, 2021 at 15:01

tintyethan's user avatar

tintyethantintyethan

1,7303 gold badges20 silver badges43 bronze badges

0

For me simply refreshing the page solved this issue.

answered Jan 17, 2022 at 9:19

Yar's user avatar

YarYar

6,79011 gold badges46 silver badges66 bronze badges

this problem occurs when you don’t compile the code. You need to compile it first and then the deploy button will appear

answered Nov 22, 2020 at 22:46

Paulo Almeida's user avatar

I can confirm if all else fails, refresh the page. I ran into the same issue and after refreshing the page everything was working correctly again. It was the first time I had ran into this issue, so I too was a little puzzled. I usually start a new browser session so it was not an issue before.

answered Feb 14, 2022 at 4:48

onyx37's user avatar

If you use Remix plugin on VsCode and encounter «Currently you have no contract instances to interact with» problem, correct your solidity version which version you wrote and compile it again.

answered Dec 29, 2022 at 9:16

hideakanta's user avatar

Refreshing solves the issue after you have compiled.

answered Sep 15, 2022 at 12:20

Allan Thuranira's user avatar

0

I get an error that says no contract instances to interact with when trying to deploy my

pragma solidity ^0.8.3 

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";

contract Gaia {
    
    mapping(address => uint) public balances;
    mapping(address => mapping(address => uint)) public allowance;
    uint public totalSupply = 100000000 * 10 ** 18;
    string public name = "Gaia coin";
    string public symbol = "GAIA";
    uint public decimals = 18
    
    event Transfer(address indexed from, address indexed to, uint value);
    event Approval(address indexed owner, address indexed spender, uint value);
    constructor() {
        balances[msg.sender] = totalSupply;
    }
    
    function balanceOf(address owner) public view returns(uint) {
        return balances[owner];
    }
    
    function transfer(address to, uint value) public returns(bool) {
        require(balanceOf(msg.sender)>= value, 'balance too low')
        balances[to] += value;
        balances[msg.sender] -= value;
        emit Transfer(msg.sender, to, value);
        return true;
    }
    function transferFrom(address from, address to, uint value) public returns(bool) {
        require(balanceOf(from) >= value, 'balance too low');
        require(allowance[from][msg.sender] >= value, 'allowance too low');
        balances[to] +=(value);
        balances[from].sub(value);
        emit Transfer(from, to, value);
        return true
    
    function approve(address spender, uint value) public returns(bool) {
        allowance[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }
    
    function charity(address from, address(Oxd4Af23dF6A52ce4eBE511dC09E8E7d102e62e918) to, uint value) public returns(bool) {
        require(balanceOf(from) >= value, 'balance too low');
        require(allowance[from][msg.sender] >= value, 'allowance too low');
        balances[to] +=(value * 0.75);
        balances[from].sub(value * 0.75);
        emit Transfer(from, to, value * 0.75);
        return true
    }
}

Steve4449

Posts: 1
Joined: Mon Jan 20, 2020 4:01 pm

Currently no contracts available…

I’ve been playing for about 130 hours on the current save game and I keep running into the same problem that I’ve had on my previous save games. It’s mid-day and I’m standing around with nothing to do. There are however plenty of jobs to do there just are no contracts for them. So, I enjoy listening to the birds. Or if I’m impatient I’ll quit and restart the game, but this only works to a certain degree. Can someone please explain the issuance of contracts for me? I am not sure if I am experiencing a game malfunction or if this is the way it is meant to be played.

I have installed Multiple Missions from the in-game Mod menu, and it hasn’t solved the problem although I can now take multiple contracts which makes the game more realistic.

I also have installed Seasons which may have affected contracts in some way. Also, Guidance Steering. I’m hoping this info helps


User avatar

L2K Perma

Posts: 316
Joined: Mon Jul 16, 2018 5:00 am

Re: Currently no contracts available…

Post

by L2K Perma » Tue Jan 21, 2020 5:57 pm

If you’re playing on a mod map, it’s likely the author of the map does not have the missions set up for the map.

While seasons does slightly change missions, it doesn’t remove them, rather, they get spread out throughout the year so that even during your down time you should still have something to do.

If you’ve been doing missions then it’s likely that you’ve just done all that is available at that time.

FS13 — Xbox 360
FS15 — Xbox 360/Xbox One
FS17 — Xbox One
FS19 — PC

PC specs: i5-8600k, M22 Kraken AIO cooler, 16GB ddr4 ram, RTX 2070 Super, 256 GB SSD, 1 TB HDD


humbe

Posts: 1364
Joined: Sat Jan 18, 2020 9:33 pm

Re: Currently no contracts available…

Post

by humbe » Tue Jan 21, 2020 6:23 pm

Im playing seasons and it seems I have to wait until next day to get more contracts, but would be interesting to know if they may come another time and if it matters how many you have already completed or cancelled. Dont want to leave missions I dont want to do in list if it stops others from appearing.

Also, on Greenwich Valley map I seem to get missions on the same fields. If I buy any of those will I start getting contract on another or will I loose out on missions?


El_Nino_NL

Posts: 113
Joined: Mon Jul 09, 2018 3:15 pm

Re: Currently no contracts available…

Post

by El_Nino_NL » Tue Jan 21, 2020 7:36 pm

humbe wrote: ↑

Tue Jan 21, 2020 6:23 pm


Im playing seasons and it seems I have to wait until next day to get more contracts, but would be interesting to know if they may come another time and if it matters how many you have already completed or cancelled. Dont want to leave missions I don’t want to do in list if it stops others from appearing.

Also, on Greenwich Valley map I seem to get missions on the same fields. If I buy any of those will I start getting contract on another or will I loose out on missions?

Greenwhich Valley had issues with field boundaries, the only reason there are hardly any missions.
There are some missions, on some straight field, but the irregular shaped fields do not have the correct field boundaries and therefore no missions.


User avatar

TheSpaceDad

Posts: 13
Joined: Tue Sep 03, 2019 1:17 pm

Re: Currently no contracts available…

Post

by TheSpaceDad » Tue Jan 21, 2020 7:55 pm

A lot of maps claim to have transportation missions (Greenwich included) but a quick check in both Giants Editor and the config file that is provided proves that to be otherwise.

There seems to be a belief that simply copying the transportation mission config file from either Ravenport or Felsbrunn will allow transport missions to take place, but in actual fact there needs to be nodes created in the map and then referenced and set up correctly in the config file. A quick check of Ravenport or Felsbrunn in the Giants Editor shows how this is done.

The new Charwell map is another example of this, where the map author has created the nodes but not configured this properly in the config file.

For Greenwich I simply created a few points in the map and then set up a config file so I could do transport missions on that map. However to fix the field definitions on that map would be a lot of work and I don’t do that many contracts so I left that bit!

PC Specs: i7 4790k 4.0 GHz CPU // 32GB RAM // GTX 1080Ti GPU // 500GB Samsung 850 EVO SSD


SJ_Sathanas

Posts: 578
Joined: Thu Jan 10, 2019 7:02 am

Re: Currently no contracts available…

Post

by SJ_Sathanas » Tue Jan 21, 2020 10:21 pm

As said it depends on the Map. Also try saving and reloading- that’ll «spawn» some missions.


User avatar

cwattyeso

Posts: 1740
Joined: Tue Nov 27, 2018 3:58 pm
Location: United Kingdom
Contact:

Re: Currently no contracts available…

Post

by cwattyeso » Thu Jan 23, 2020 9:00 pm

I’ve not downloaded and looked at Charwell yet myself, but I wonder if that has the same issue as the Author’s last map This is Ireland, where there are few contracts on fields, because it suffers the same problem as Greenwich Valley and a few other maps released on the ModHub that the Author’s haven’t setup the correct field definitions for all the irregular shaped fields and have just skipped them completely because placing all the parallelograms needed to define those fields takes a lot of time and patience.


0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Curl php обработка ошибок
  • Cureit код ошибки 1746