File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
src/permissionless/bindings Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 99} from "viem" ;
1010import { ITreasurySplitterAbi } from "../../abi/310/iTreasurySplitter.js" ;
1111import type { ParsedCallArgs , RawTx } from "../../sdk/index.js" ;
12- import { BaseContract } from "../../sdk/index.js" ;
12+ import { BaseContract , json_stringify } from "../../sdk/index.js" ;
1313
1414const abi = ITreasurySplitterAbi ;
1515
@@ -106,7 +106,15 @@ export class TreasurySplitterContract extends BaseContract<typeof abi> {
106106 } ) ;
107107 return {
108108 functionName : decoded . functionName ,
109- ...super . parseFunctionParams ( decoded ) ,
109+ ...this . parseFunctionParams ( decoded ) ,
110+ } ;
111+ } case "setDefaultSplit" : {
112+ const [ receivers , proportions ] = args ;
113+ return {
114+ receivers : json_stringify ( receivers ) ,
115+ proportions : json_stringify ( proportions . map ( ( proportion ) => `${ proportion / 100 } % [${ proportion } ]` ) )
116+
117+ ,
110118 } ;
111119 }
112120
You can’t perform that action at this time.
0 commit comments