Git Product home page Git Product logo

Comments (4)

IGoryunov avatar IGoryunov commented on August 25, 2024

@tkoen93 thanks for detailed reporting.
Unfortunately I can't reproduce this bug. Please pull last commit from master branch, rebuild and try again.
image

from ewa.

tkoen93 avatar tkoen93 commented on August 25, 2024

@IGoryunov This issue occured when I first deployed the following contract (https://monitor.credits.com/Devs-Dapps-Testnet/Contract/DxCmxu1hsmKAzWW34ANty2DVeX1AsD1n8NXY771812jF):

import com.credits.scapi.annotations.*;
import com.credits.scapi.v0.*;

public class simpleContract extends SmartContract {

 public String simple;
 public int i;

 public simpleContract() {
 simple = "Simple contract return";
 i = 0;
 }
 
 public String getSimple() {
 i++;
 return String.valueOf(i) + " " + simple;
 }
}

After that I deployed the contract (https://monitor.credits.com/Devs-Dapps-Testnet/Contract/F6bsQbbCCrZdtmCMKabC2aVHzXTJacC9MpU4gYZWYPaR)

import com.credits.scapi.annotations.*;
import com.credits.scapi.v0.*;

public class simpleContract extends SmartContract {

 public int i;

 public simpleContract() {
 i = 0;
 }
 
 public int getSimple() {
 i++;
 return i;
 }
}

As shown in my previous post you can see that the API returns the correct method, also probably the reason why you see the correct method upon requesting the methods for this contract.

As it looks like this only happens when you deploy contracts yourself. To reproduce you might want to try and deploy the two contracts.

from ewa.

IGoryunov avatar IGoryunov commented on August 25, 2024

Could you check please last commit on master branch is 284b769? I sequentially reproduced actions that you describe above, but didn't get similar result

image

from ewa.

tkoen93 avatar tkoen93 commented on August 25, 2024

Seems to work allright in the wallet-desktop.jar that's included in the 4.2.417 testnet version.

from ewa.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.