Launch the Node
Overview
Compile
subsembly compile/--snip--/
// Extrinsic calls of Nicks module
export enum NicksCalls {
set_name = 0
}
/--snip--/
export namespace Dispatcher {
export function dispatch(ext: UncheckedExtrinsic): u8[] {
/--snip--/
case Pallets.Nicks: {
switch(ext.method.callIndex[1]) {
case NicksCalls.set_name: {
let bytesReader = new BytesReader(ext.method.args);
const origin = bytesReader.readInto<AccountId>();
const name = bytesReader.readInto<ScaleString>();
return Nicks.set_name(origin, name);
}
default: {
return ResponseCodes.CALL_ERROR
}
}
}
}
/--snip--/
}Launch
Last updated