aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[Bug][vm] Function types allowed as parameters even if feature is not enabled

Open wrwg opened this issue 6 months ago • 1 comments
trafficstars

It appears the following code can be published even if function types are not enabled:

    fun transfer_and_create_account(some_f: |u64|u64): u64 {
        some_f(3)
    }

wrwg avatar May 07 '25 23:05 wrwg

Note that this only happens in the testing environment

rahxephon89 avatar May 22 '25 20:05 rahxephon89

Closing as something that can only happen with the wrong test setup.

vineethk avatar Jun 26 '25 18:06 vineethk