Skip to content

Cannot destructure property 'code' of '(intermediate value)' as it is null. #7

@ConfigCpuTimer

Description

@ConfigCpuTimer

Sorry for my poor English. I just learn to build a dApp within vite, but it's difficult to start with the extension. The guide on your website https://vite.wiki/zh/tutorial/contract/debug.html#%E7%BC%96%E5%86%99%E5%90%88%E7%BA%A6%E4%BB%A3%E7%A0%81 told me to execute command soliditypp: Generage HelloWorld.solpp first but responded nothing. So I wrote a copy of the example showed in guide.

`pragma soliditypp ^0.4.2

contract HelloWorld {
event transfer(address indexed addr, uint256 amount);
onMessage SayHello(address addr) payable {
addr.transfer(msg.tokenId, msg.amount);
emit transfer(addr, msg.amount);
}
}`

Then I got an error.

TypeError: Cannot destructure property 'code' of '(intermediate value)' as it is null. at SolidityppDebugSession.<anonymous> (c:\Users\Kyousuke Ayukawa\.vscode\extensions\vitelabs.soliditypp-0.4.2\out\debugSession.js:99:21) at Generator.next (<anonymous>) at fulfilled (c:\Users\Kyousuke Ayukawa\.vscode\extensions\vitelabs.soliditypp-0.4.2\out\debugSession.js:4:58)

Could you please help me fix it? I am literally impressed by the features of block-lattice, and a better guide will be very helpful to developers. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions