Questions tagged [contract]

424 questions
0
votes
1 answer

Referencing `self` in `__old__` in PyContract constraints

I'm working on writing some constraints for a class method using PyContract (not PyContracts). As a postcondition, I'd like to ensure that the memory address of the instance hasn't changed i.e. id(self) should be the same before and after calling…
inspectorG4dget
  • 110,290
  • 27
  • 149
  • 241
0
votes
3 answers

Implementing a contract in Borland C++ Builder

I am trying to implement a contract class in Borland C++ Builder, but get a compilation error that I do not understand. The code looks like: class baseClass2 { public: virtual void test () = 0; }; class derivedClass: public baseClass2 { …
0
votes
1 answer

Expand and contract divs separately horizontally onclick

I have a jfiddle below that has two links that expand two divs independently and horizontally. http://jsfiddle.net/j9W7R/ How would I go about causing only one div to be seen any any given time? Say you click the first one, then click the second…
LITguy
  • 623
  • 4
  • 13
  • 39
0
votes
1 answer

Wcf service sending list of class objects with null values

The issue is when wcf service is sending the list of class objects to client, the values are null. Any help or guidance is appreciated. My service interface is IPswdService.cs namespace GetPasswordsSvc { [ServiceContract] public interface…
Daniel
  • 605
  • 1
  • 8
  • 19
-1
votes
0 answers

Contract call function works on testnet but doesn't work on mainnet on bsc chain

The call function for getTokensForUSD works perfectly on testnet and hardforks but doesn't work on mainnet... Here's the function code :- function getTokenForUSD(uint256 _usdAmount) public view returns(uint256 , uint256 tokenAmountRequired) { …
Mr Beast
  • 1
  • 1
-1
votes
1 answer

New to Solidity - Need Help Troubleshooting ParserError When Compiling Smart Contract

I tried compile my contract for about 2 days now. I keep getting the error: ParserError: Expected pragma, import directive or contract/interface/library/struct/enum/constant/function/error definition.--> project:/contracts/Donation.sol:57:5:|57 | }|…
Tinawaa1
  • 7
  • 2
-1
votes
1 answer

How to make an image float above the text in OpenPDF to realize the seal function?

I found that OpenPDF's Image.class seems to have only 6 image positioning methods, and among them, there is only the option to add the image below the text (that is Image.UNDERLYING), but there is no option to let the image float above the text. The…
-1
votes
2 answers

What is missing from this Smart Contract?

I am working on a smart contract, and my goal is that when a certain (variable) amount of eth gets send to the contract, it gets split and payed to three adresses. I currently have this code. Am I missing something? It doesn't work in Remix…
BlockB
  • 1
-1
votes
1 answer

How to stop lost Remix Contract and get the money back?

I followed a YouTube video and deployed a contract on Remix; and deposited 0.6 ETH on it. Initially, I tried to deposit a little amount of 0.1ETH and tried to Withdraw it (just to check if it is legit!). Everything went good and I received the…
-1
votes
1 answer

Kadena Chainweaver Login question & VirtualBox Chainweaver size problem

Question 1: Every time I load https://chainweaver.kadena.network my password doesn't work and I have to restore the wallet from the recovery phrase. Any idea why? Question2: Because of this i tried using the VM Chainweaver instead of their website…
Mike
  • 21
  • 7
-1
votes
1 answer

Failed to compile "134_flatten.sol": solc: exit status 1Error: expected identifier but got 'Number'

I get a compiler error when trying to compile a contract. I get the following error when the app tries to compile the sol file. The error is: Failed to compile "134_flatten.sol":solc:exit status 1Error: Expected identifier but…
-1
votes
1 answer

What does the term mean --"ForkJoinPool is not a part of the public contract" in java

while going thru this article: https://4comprehension.com/parallel-collection-processing-1/ I saw the sentence -- ForkJoinPool is not a part of the public contract -- What does this mean exactly. As per my understanding ForkJoinPool is a public…
-1
votes
1 answer

java.lang.IllegalArgumentException: Comparison method violates its general contract! How to handle possible null objects?

private Comparator spriteSorter = new Comparator() { public int compare(Entity e0, Entity e1) { if (e0 == null || e1 == null) return -1; //was 0 if (e1.getY() < e0.getY()) return +1; if (e1.getY() >…
Madness
  • 125
  • 1
  • 10
-1
votes
1 answer

Is banking information necessary in order for iAds to start working?

Do I have to provide my banking information and agree on the contract(or whatever that is) beforehand, Or should I only do it once it's time to receive the money?( if there is any money at all) and iAds will just start working automatically?
Abdou023
  • 1,654
  • 2
  • 24
  • 45
-1
votes
1 answer

Is LinkedList breaks contract if amount of elements in list greater than Integer.MAX_VALUE?

java doc for java.util.List#size() Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE. Research java.util.LinkedList source code: public method: public boolean add(E…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
1 2 3
28
29