Giter Site home page Giter Site logo

Comments (6)

hewigovens avatar hewigovens commented on July 21, 2024

can you share your sample signing input?

from trustsdk-ios.

iampawan avatar iampawan commented on July 21, 2024

        let input = ElrondSigningInput.with {
            $0.transaction = ElrondTransactionMessage.with {
                $0.nonce = UInt64(nonce!)
                $0.value = cAmount.stringValue
                $0.sender = fromAddress!
                $0.receiver = toAddress
                $0.gasPrice = 1000000000
                $0.gasLimit = 70000
                $0.data = ""
                $0.chainID = chainId
                $0.version = 1
                
            }
            $0.privateKey = privateKeyData
        }

or do you want the json? Althought it is working fine with walletcore

from trustsdk-ios.

hewigovens avatar hewigovens commented on July 21, 2024

This is not very helpful, what's the real of value of those variables? what result would you expect (comparing to wallet core)?

from trustsdk-ios.

iampawan avatar iampawan commented on July 21, 2024

For eg

{"nonce":3,"value":"1000000000000000","receiver":"erd1f7j9humvsxa7latnhahu5996en8aw8gpj24jse6uxpy4lqntqgyql9c7vq","sender":"erd1g5znpnjs9jtqultyj9enlv5nrsel0e83cv7r3hsyjnv93caxmz5q3zjcdd","gasPrice":1000000000,"gasLimit":70000,"chainID":"1","version":1,"signature":"301243771e36b2d1324752eae251d640208e837fa11a23525b479ee920d37c15e8eac165ffa3e1809a9b39aa14120e6783300ef3d66a03c1c5641b58e3647b0a"}

This works fine with wallet core, but the trust sdk can't sign and ends up with an error.

from trustsdk-ios.

hewigovens avatar hewigovens commented on July 21, 2024

@iampawan what's error from sdk? Did selected wallet in app match the sender? should be erd1f7j9humvsxa7latnhahu5996en8aw8gpj24jse6uxpy4lqntqgyql9c7vq

from trustsdk-ios.

hewigovens avatar hewigovens commented on July 21, 2024

I reproduced, will debug it soon

from trustsdk-ios.

Related Issues (20)

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.