We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d34cee0 commit b82cd04Copy full SHA for b82cd04
1 file changed
packages/wasm-dot/js/transaction.ts
@@ -4,6 +4,7 @@
4
5
import { WasmTransaction, MaterialJs, ValidityJs } from "./wasm/wasm_dot";
6
import type { Material, Validity, Era } from "./types";
7
+import { AddressFormat } from "./types";
8
9
/**
10
* DOT Transaction wrapper
@@ -37,10 +38,10 @@ export class DotTransaction {
37
38
39
* Get sender address (SS58 encoded)
40
*
- * @param prefix - SS58 address prefix (0 for Polkadot, 2 for Kusama, 42 for generic)
41
+ * @param format - Address format (Polkadot, Kusama, or Substrate)
42
*/
- sender(prefix: number = 0): string | undefined {
43
- return this._wasm.sender(prefix) ?? undefined;
+ sender(format: AddressFormat = AddressFormat.Polkadot): string | undefined {
44
+ return this._wasm.sender(format) ?? undefined;
45
}
46
47
0 commit comments