pendulum-chain / api-solang

This is the code for the npm package @pendulum-chain/api-solang
0 stars 0 forks source link

Add an explicit dry run function #6

Closed TorstenStueber closed 6 months ago

TorstenStueber commented 6 months ago

Closed #4

TorstenStueber commented 6 months ago

Good question. I didn't try but that is what I assume. After all the contracts pallet does not make a distinction between mutating and non-mutating, this is a purely metadata-related distinction and something designated by the compiler.

When a non-mutating call is executed via RPC, then the RPC handler just calls the normal pallet-contract call function, which is meant to execute during extrinsic execution. So this function does not care about mutating or non-mutating.