The current encoding uses old weight format: XVM_PRECOMPILE.xvm_call("\x1f\x00", contract_address, buffer); while to work with WeightsV2 this should be: XVM_PRECOMPILE.xvm_call("\x1f\x00\x00\x00\x00", contract_address, buffer);