sudo key is an option
@@ -64,7 +64,7 @@ async function main() {
console.log(`connected to ${chain} ${nodeVersion}`);
console.log(`current runtime version ${specVersion}`);
- assert.equal(hdxAddress(sudoKey), hdxAddress(from.addressRaw), `imported account doesn't match sudo key`);
+ assert.equal(hdxAddress(sudoKey.unwrap()), hdxAddress(from.addressRaw), `imported account doesn't match sudo key`);
const setCode = api.tx.system.setCode(code);
const sudo = api.tx.sudo.sudoUncheckedWeight(setCode, 100);
