Skip to content

Error: invalid solidity type!: safeuint #2

@tpmccallum

Description

@tpmccallum

I am getting the following error

> deployedSmartTokenContract.c();
Error: invalid solidity type!: safeuint
    at web3-cmt.js:8993:15
    at web3-cmt.js:9179:16
    at map (<native code>)
    at web3-cmt.js:9178:12
    at web3-cmt.js:9151:25
    at web3-cmt.js:12393:18
    at web3-cmt.js:12416:16
    at apply (<native code>)
    at web3-cmt.js:12540:12
    at <anonymous>:1:1

If I compile and deploy the the contract C and then call its function c as per the example at https://lity.readthedocs.io/en/latest/safeuint.html#example

pragma solidity ^0.4.22;

contract C{
    function c() public pure returns (safeuint) {
        safeuint a = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
        safeuint b = 0x8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff;
        return (a*b);
    }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions