You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm developing a cli tool using near-api-js that executes ft_transfer. I want to get the transaction hash of ft_transfer. But now near-api-js only returns result.status.SuccessValue.
Related code:
Describe the solution you'd like
I would like to be able to provide a parameter that allows the user to control whether or not to return information about the results of all contract calls
private async _changeMethod({ args, methodName, gas, amount, meta, callbackUrl, raw }: ChangeMethodOptions) {
validateBNLike({ gas, amount });
const rawResult = await this.account.functionCall({
contractId: this.contractId,
methodName,
args,
gas,
attachedDeposit: amount,
walletMeta: meta,
walletCallbackUrl: callbackUrl
});
// control by raw parameters
if (raw) {
return rawResult
}
return getTransactionLastResult(rawResult);
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I'm developing a cli tool using near-api-js that executes ft_transfer. I want to get the transaction hash of ft_transfer. But now near-api-js only returns result.status.SuccessValue.
Related code:
near-api-js/packages/near-api-js/src/contract.ts
Line 150 in f786164
Describe the solution you'd like
I would like to be able to provide a parameter that allows the user to control whether or not to return information about the results of all contract calls
The text was updated successfully, but these errors were encountered: