Whitecoin-XWC / xwc-gjavac

Java and Kotlin compiler for uvm
MIT License
0 stars 0 forks source link

UvmMap.set() issue #13

Open Molocher opened 2 years ago

Molocher commented 2 years ago

Hi,Michael There have some question need you help. when i define a variable at Storage than type is UvmMap, image When using this variable in the method test() image then Call the test() method through the contract,that will throw error: contract execute error storage handledNonces type not matched in chain

Looking forward to hearing from you again

testhound commented 2 years ago

@Molocher I noticed that the 'set' method on the 'develop' branch has it's implementation completely commented out. I believe this is the reason for the exception.

Based on the git log, it appears that you commented out the code on February 25th when you made this commit: 'added ccsource contract'.

Molocher commented 2 years ago

ok ,I will checkout previous branch and test this issue again

tobiasholt commented 2 years ago

It seems this issue happens at runtime, need to check the virtual machine and find out why the set() doesn't work. Meanwhile, there is another API called "fast_map_set()" which can be used as a workaround for UvmMap.set() method, so this is not an urgent issue.