Build fix after ink crate 4.0.0-rc was released
@@ -31,11 +31,7 @@ mod caller {
transfer_value: Option<u128>,
) -> u32 {
build_call::<DefaultEnvironment>()
- .call_type(
- Call::new()
- .callee(callee)
- .gas_limit(max_gas.unwrap_or_default()),
- )
+ .call_type(Call::new(callee).gas_limit(max_gas.unwrap_or_default()))
.transferred_value(transfer_value.unwrap_or_default())
.exec_input(ExecutionInput::new(Selector::new(selector)).push_arg(arg))
.returns::<u32>() // FIXME: This should be Result<u32, u8> to respect LanguageError
