Skip to content

Commit d232a6d

Browse files
committed
fix: 🐛 fix built-in action name redeem to retire
1 parent cb45284 commit d232a6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "infrablockchain-js",
3-
"version": "22.1.1",
3+
"version": "22.1.2",
44
"description": "Talk to infrablockchain API",
55
"main": "dist/index.js",
66
"scripts": {

src/infrablockchain-js-api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export class Api {
267267

268268
/** Convert actions to hex */
269269
public async serializeActions(actions: ser.Action[]): Promise<ser.SerializedAction[]> {
270-
const builtInActions = ['transfer', 'issue', 'redeem', 'settokenmeta', 'txfee'];
270+
const builtInActions = ['transfer', 'issue', 'retire', 'settokenmeta', 'txfee'];
271271
return await Promise.all(actions.map(async (action) => {
272272
const { account, name, authorization, data } = action;
273273
const contract = await this.getContract(account);
@@ -295,7 +295,7 @@ export class Api {
295295

296296
/** Convert actions from hex */
297297
public async deserializeActions(actions: ser.Action[]): Promise<ser.Action[]> {
298-
const builtInActions = ['transfer', 'issue', 'redeem', 'settokenmeta', 'txfee'];
298+
const builtInActions = ['transfer', 'issue', 'retire', 'settokenmeta', 'txfee'];
299299
return await Promise.all(actions.map(async ({ account, name, authorization, data }) => {
300300
const contract = await this.getContract(account);
301301
let hasBuiltInAbi = false;

0 commit comments

Comments
 (0)